windows-server-2008

IIS 7.0 / Windows Server 2008 - DLL not found in ASP.NET application

你离开我真会死。 提交于 2019-12-05 03:21:19
问题 I try to run an ASPX page hosted on a Windows Server 2008 x86 through IIS 7.0, with .NET 4.0. I added an application, app1 , to the Default Web Site of IIS, mapped to dir C:\toto\app1 which contains the Web.config file. The error I have is: Could not load file or assembly 'xxx.dll' or one of its dependencies , etc and xxx.dll is a .NET DLL that wraps native C++ DLLs ( they are the dependencies that fail to be loaded), all of them are located in C:\toto\app1\bin . I tried to modify the PATH

What is the best way to optimize a Windows Server 2008 box running IIS7 to serve only static files?

旧时模样 提交于 2019-12-05 02:50:14
问题 I would like to have our web applications pull static content (css, js, images) from a static file server running Windows Server 2008 and IIS7. What sort of optimizations would you make to the server for this single purpose? (Machine.config changes? Web.config changes? Special IIS7 setup or modules? What?) 回答1: Some advices: Enable gzip compression: http://blogs.msdn.com/vivekkum/archive/2009/02/18/http-compression-in-iis-6-and-iis-7-using-service-account.aspx Set Cache-Control: max-age to

NT Eventlog single message size

随声附和 提交于 2019-12-05 01:12:41
Can anybody tell me what is maximum size of a windows NT log message? I know that it is possible to reset the maximum log size of event log from 32 MB. I am interested about the memory a single message can hold in NT event log. Thanks in advance In Windows Server 2008 the maximum size of a single Event Log entry is: 31,839 characters http://msdn.microsoft.com/EN-US/library/windows/desktop/aa363679.aspx The answer is 32766 characters ~ 32 KB See a example below: Error: Log entry string is too long. A string written to the event log cannot exceed 32766 characters. 来源: https://stackoverflow.com

HTTP.SYS Kernel mode driver

谁说胖子不能爱 提交于 2019-12-05 00:45:16
问题 What is the big deal with HTTP.SYS in IIS 7? From what I understand, it is low level which is good for security. Why? There is no context switching which could be expensive. Why? Please explain. Thanks! 回答1: The benefits are already well documented, http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a2a45c42-38bc-464c-a097-d7a202092a54.mspx?mfr=true By using HTTP.sys to process requests, IIS 6.0 delivers the following performance enhancements: Kernel-mode caching.

Why won't my MVC project work after publishing it?

半世苍凉 提交于 2019-12-04 23:38:06
问题 I recently published my first MVC 2 project to a commercial web server, running Windows 2008, and which purportedly supports other MVC sites without issue, but have been experiencing some problems. Here is the high-level structure of the project. As you can see, it is very simple: But, after the site is published, and I navigate to the URL, I get "HTTP Error 403.14 - Forbidden: The Web server is configured to not list the contents of this directory." So, I contacted the web host about it and

ASP.net C# requires IIS restart when new DLL copied to BIN directory

北城以北 提交于 2019-12-04 23:01:40
问题 We are receiving a problem whereby every time we copy a dll to the bin directory, our main domain on the website grinds to a halt and the only way to bring it back up is by restarting the "WWW Publishing Service". We run a website which contains a number of IIS applications running off a single server where each of these applications are configured to run off different application pools. We have a large codebase which contains over 280 aspx pages across the site. Our main domain contains

WebResource.axd giving 403 error in ASP.Net Post backs using IIS7

送分小仙女□ 提交于 2019-12-04 20:59:31
I installed a ASP.Net website on a Windows 2008 server, which is by default using IIS7. The website seems to work fine, but the post backs on my forms do not work. After a few hours of debugging, I realized that when I manually try to hit the WebResource.axd file in my browser (e.g. I type http://www.domain.com/WebResource.axd in the address bar), I get a HTTP 403 error (Access Denied). I'm not quite sure where to look next and my Windows 2008 security knowledge is limited. How do I go about giving access to that file? Navigate to your iis config folder. Typically: c:\windows\system32\inetsrv

How to auto login to windows account?

假如想象 提交于 2019-12-04 19:11:40
I am researching ways to auto login to a windows server, so applications can be restarted on reboot if the server crashes. Do windows services load before or after a user logs in? Can a windows service be used to login to an account? If not, is there any way to use some sort of login script to facilitate automatically loggin in? Services run regardless of whether a user logs on. If you need an application to run all the time, have you considered converting it to a service? Auto-logon is a security risk. For auto login. Here is one of them: To use Registry Editor (Regedt32.exe) to turn on

Find out if IIS is installed by examining the Registry

我们两清 提交于 2019-12-04 17:15:40
I have an innosetup installer that needs to create an IIS Virtual Directory. In order to create the virtual directory, IIS Management Service must be enabled. How do I check which Windows Features are enabled? The best solution would be to check a registry setting, but other methods that are possible via innosetup are fine. The solution should work with XP, Vista, Win7, Win2003 server and Win2008 server (32 and 64 bit). I don't know offhand how to generically tell which features are installed. In the specific case of IIS, you can tell by looking for this registry key: HKEY_LOCAL_MACHINE

What is the difference between web.config timeout and IIS timeout?

拥有回忆 提交于 2019-12-04 15:55:51
问题 What is the difference between the following entry in web.config: <sessionState timeout="30"/> And this setting in IIS 7.5 (Default web site > Advanced Settings > Connection Limits) : I know that the web.config is supposed to apply to the time that the ASP.NET session is kept alive, but what is the IIS setting for? 回答1: The connection timeout is how long a connection from a browser to the server should take till it times out. So, when the browser requests a page/image/resource, how long