Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 572
tugberk Avatar asked Nov 29 '22 02:11

tugberk


1 Answers

This worked for me:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

like image 74
Daniel Dolz Avatar answered Dec 04 '22 04:12

Daniel Dolz