54

There are several things you can do: 1. Application Initialization You can use Application Initialization Module which comes in-box with IIS 8.0 you can have something like this in your web.config <applicationInitialization doAppInitAfterRestart="true" > <add initializationPage="/" /> </applicationInitialization> This will send ...


40

Take a look at IIS7's Failed Request Tracing feature: Troubleshooting Failed Requests Using Tracing in IIS 7 Troubleshoot with Failed Request Tracing The other thing I would do is tweak your <httpErrors> setting because IIS may be swallowing an error message from further up the pipeline: <configuration> <system.webServer> <...


35

We had the same error on a brand new server. The reason was not the default IIS security policy, stored in applicationHost.config, as suggested by the other answer (although we checked that). The reason was that we installed IIS without support for ASP.NET (an ASP.NET 4.5 role)! When we installed the missing support for ASP.NET, our application just ...


12

It sounds like a permissions error. Did you remember to add the IIS User IIS_IUSRS to the list of users that can access the files?


12

IIS Express supports Failed Request Tracing and it's turned on by default. The logs are written to %IIS_USER_HOME%\TraceLogFiles which is usually at this location: %USERPROFILE%\Documents\IISExpress\TraceLogFiles In that folder you'll see a list of subfolders for each of the projects you've run up in IIS Express. In each site's folder there should be a ...


12

In my case: The Event Log was empty. web.config wasn't corrupt - verified by using same on local machine / using inetmgr Finally... Checking IIS logs showed a request like this ...Chrome/57.0.2987.133+Safari/537.36 500 19 5 312 The key being: sc-status sc-substatus sc-win32-status 500 19 5 which with some googling pointed me to the ...


8

I'm guessing that you're using WS-Federation? Or at least using the WSFederationAuthenticationModule and/or SessionAuthenticationModule? Both of those modules perform a redirect to match the casing of your application as it's in IIS any time they're unable to authenticate you or verify that you're authorized to get the requested resource. I don't see any way ...


7

Apparently I need to install MVC dependencies on the server. I found a recipe on winhost forums, which says to add the required references to your project and configure them for web deployment. I followed these steps, and it solved my problem: Add the following references to the project: Microsoft.Web.Infrastructure System.Web.Razor System.Web.WebPages....


7

Active Directory Federation Services (ADFS) is primarily concerned with authentication. It is not a metadirectory and can't be used to return generalized information from Active Directory. Accessing the Active Directory through LDAP is probably the direction you want to go, as it allows you to both query the attributes of user accounts (and other objects). ...


6

Dave, A few thoughts to start you: I am assuming it's the w3wp.exe that is eating your resources. If not, it might be worth running some PAL reports to get some better insight into the overall health of the server: http://pal.codeplex.com/ Sometimes I'll even run PAL even if it is an IIS problem... PAL can spot all sorts of problems that you never would ...


5

Some general pointers: http://blogs.iis.net/mailant/archive/2009/10/22/general-availability-of-windows-7-amp-windows-server-2008-r2-with-iis-7-5.aspx http://4sysops.com/archives/windows-server-2008-r2-new-features-the-complete-list-part-3-iis-75-and-performance/ http://www.iis.net/ConfigReference/system.webServer/httpCompression Bug fixes FTP Publishing ...


5

I'm guessing you have URL Rewrite setup in the root of your website for index.php. So, if you're running your MVC application in a subdirectory, you can unregister that index.php URL rewrite for that subdirectory. To do this, just open up IIS manager, click on the subdirectory under your website, and use the "Filter:" box to type "rewrite" and it'll let ...


5

if the certificate CN or altName dnsName is 'localhost' then the browser will only accept a hostname of 'localhost' (and not something.localhost nor localhost.localdomain etc).


5

Try just "." as the file extension. This seems to work on a Windows 2008 R2 SP1 box with ASP.NET 4. I haven't seen this documented anywhere, but it follows the same rule as the Handler Mappings for extensionless URLs that were introduced in ASP.NET 4 / W2K8 R2 SP1 (see Meaning of path attribute on handlers in web.config question).


5

It is really, really dangerous to run IIS as a user that has access to all folders in the file system. You are asking to be hacked badly (do you really want IIS to access C:\Windows?). It is better to explicitly grant permission to the user IIS runs under to access the folders you really need IIS to access. If you really must change the identity IIS runs ...


5

It looks like "Start application pool immediately" controls whether the application pool is "Started" when the World Wide Web Publishing service is started. But a "started" application pool is not necessarily running (meaning there may not be a w3wp process). If an app pool is not "started" then you will get a 503 when you hit a site that uses that app ...


4

Typically, the configuration is like this: Internet facing servers connected to Firewall's DMZ Port Trusted servers (SQL, AD, etc) connected to Firewall's Trusted/LAN Port Internet connected to Firewall's WAN port Then, the Firewall is configured to route between those subnets, and allow access according to the ACLs you define.


4

After many dead ends, I found the root cause of the problem: it turns out that MVC URL rewriting has dependencies on other IIS modules. I enabled static content compression and suddenly all of my MVC sites started working (in the course of researching this I created several MVC2 and MVC3 sites and all had the same problem). I found the answer in this ...


4

This question is likely to get ripped to shreds...but, do you mean a standard PC with Windows 7 from your local Supermarket, or a actual proper server with Windows 7 installed on it? If you are just buying a PC to run this, forget it. A PC, even a powerful one, is nowhere capable of running with the fault-tolerance that a server would be capable of. A PC ...


4

You won't have access to the models/controllers as those will be copiled into the .dll. You will need to have the original source to make changes to those files. oh and P.S. If you don't have the source anymore it is possible to retrieve it from the dll with a decompiler e.g. here : https://stackoverflow.com/questions/179741/how-do-i-decompile-a-net-exe-...


4

The most obvious issue is improper or zero NTFS rights on the web application folder. So make sure the account serving the site has the right permissions. Without proper NTFS rights to the web directory it doesn't matter what you put in the web.config as it will never be read. A quick check can be to give everyone full rights - if the site starts working ...


4

File permissions for anonymous access are set via a special user account called IUSR_<MachineName>. Check the NTFS permissions (Security tab) of both your document root folder and the index.htm file itself. Verify that this account has "Read" access to all of the files and folders that anonymous users need to be able to browse. If this account is not ...


4

try to put a port in the range 44300-44399 this one hundred port numbers already have a certificate "bound" to them


4

Bit late to respond but I will add my findings as I looked around to find asnwer to this same question. "OnDemand": IIS will launch worker process when first request for Web application is received. "AlwaysRunning": IIS Launches the worker process for the application pool as soon as IIS is started OR when application pool is created.


4

Had the same question as the original poster but could not find a concise answer, below is the analysis from my research. Application Pool != Worker Process (w3wp.exe) Typically we see a single w3wp.exe instance running for each application pool but technically we can configure a web garden with multiple w3wp.exe instances running. Web gardens... are they ...


3

Following article should help you : http://technet.microsoft.com/en-us/library/dd939979(WS.10).aspx In order to sum it up : Many features have been added or enhanced in Internet Information Services (IIS) 7.5. The following changes are available: Integrated extensions WebDAV and FTP Request Filtering Administration Pack modules ...


3

I had really great luck using Microsoft's Debug Diagnostic Tool to dump my w3wp process and then check out the threads and stack traces for things that were locking up. It'll even tell you the requested page that spawned the thread which is SUPER nice. http://www.microsoft.com/en-us/download/details.aspx?id=26798


3

Try "not" load balancing the servers to see if one of the servers is responsible.


3

Use DebugDiag 1.2 to perform the analysis of the dump: https://www.microsoft.com/download/en/details.aspx?id=26798 It's useful to be aware that any process that is capable of using more than one thread can push utilization to 100% on all processors of a server. This includes native code and even core os components. When you say "latest patched", to ...


3

The first and foremost action you need to take, is to determine what actually happens. To do so, turn on Detailed Error Pages for local requests: appcmd.exe set config -section:system.webServer/httpErrors -errorMode:DetailedLocalOnly /commit:apphost Now all 400 and 500 class http returns will cause IIS to display a much more detailed error page.


Only top voted, non community-wiki answers of a minimum length are eligible