IIS Express will not start

坚强是说给别人听的谎言 提交于 2019-11-28 23:23:58

Check that the user its failing has a IISExpress\config folder in their home folder. If not then copy it over from the user where IISExpress is working. This is a common fault when the config files/folders are missing.

Adam

To clarify John's comment - the directory will be something like C:\users\jmitchell\My Documents\IISExpress\config. I assume John is correct in that if it doesn't exist you would need to create the directory.

Alternatively the directory could already exist and just be corrupted. This is what I believe happened in my case. I had previously installed WebMatrix but ran into all sorts of issues today. After uninstalling IIS Express, Web Platform Installer, WebMatrix, and some SQL Server Management Objects, and then reinstalling WPI & WebMatrix, I came across this post.

I actually got IIS Express to run successfully after deleting the config directory mentioned above, and then re-running C:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error

And I ONLY wasted two hours of my day on this! Thanks Microsoft!

I got this problem after upgrading to Web Platform Installer 5.

The quick fix for me was to also upgrade to Webmatrix 3 (http://www.microsoft.com/web/webmatrix/)

After deleting config folder it was still not working then i followed this article and hit ctrl + F5..so it did run

Only Deleting config folder did not work for me. Also i did this

"Delete the following file <>.vs\config\applicationhost.config, the .vs folder may be hidden"

https://social.msdn.microsoft.com/Forums/en-US/1a25b14d-02e5-4adc-bd79-4d215893fed2/vs-2013-unable-to-start-program-cprogram-files-x86iis-expressiisexpressexe?forum=visualstudiogeneral

Jordan

Also, you might need to change the line

applicationDefaults applicationPool="Clr4IntegratedAppPool"

to

applicationDefaults applicationPool="Clr2IntegratedAppPool"

in the file...

C:\users\jmitchell\My Documents\IISExpress\config\applicationhost.config

if you continue to get the same error (as I did) after following the instructions on the post above. The issue being solved here is that you don't have .NET4 installed, and so are reverting to using .NET2

Thanks

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!