Search code examples
asp.netiisiis-7iis-express

HTTP 500.21 error while starting a web site directly through iisexpress.exe


When I try to run a web site directly through iisexpress.exe, I am getting an error. This happens for all web sites. The command I used is as below:

.\iisexpress.exe /site:MultipleRoutes

The site starts up successfully but I am getting the following error:

HTTP Error 500.21 - Internal Server Error

Handler "ExtensionlessUrl-Integrated-4.0" has a bad module "ManagedPipelineHandler" in its module list

I am assuming that somehow the website is not running under ASP.NET but when I fire up the sites through VS, there is no problem.

Any idea?

Edit:

Here is another fact: when I try to run the web site by specifying the path instead of the site name registered inside the applicationHost.config file, the site runs perfectly fine:

.\iisexpress.exe /path:D:\Dropbox\Apps\MultipleRoutes /port:1672 /clr:v4.0


Solution

  • It sounds like your user applicationHost.config may have something wrong in it. If you go to your documents folder and then \config\applicationhost.config you should see the config file that iisexpress is using. Search for ManagedPipelineHandler and ExtensionlessUrl. Does anything stand out as being amiss?