IIS Express will not start

眉间皱痕 提交于 2019-11-27 14:45:10

问题


I'm just putting this one out there since its a Google Zero-resulter which means I win a prize?

Cannot start IIS Express 7.5 after reinstall from one account, but I can when logged-in under my other domain account.

What's odd is that the account it fails under is my 'super' account with local admin rights, and is also the account I installed it under.

The error stems from diprestr.dll not loading...

C:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error
Starting IIS Express ...
Initializing the W3 Server Started CTC = 2068729
W3 Server initializing WinSock.  CTC = 2068744
W3 Server WinSock initialized.  CTC = 2068744
W3 Server ThreadPool initialized (ipm has signalled).  CTC = 2068744
Failed to load global module C:\Program Files (x86)\IIS Express\diprestr.dll
Failed processing with hr = 8007007e
Error loading global modules.  hr = 8007007e
Terminating W3_SERVER object
Start listenerChannel http:0
Initializing the W3 Server Started CTC = 2069774
W3 Server initializing WinSock.  CTC = 2069774
W3 Server WinSock initialized.  CTC = 2069774
W3 Server ThreadPool initialized (ipm has signalled).  CTC = 2069774
Failed to load global module C:\Program Files (x86)\IIS Express\diprestr.dll
Failed processing with hr = 8007007e
Error loading global modules.  hr = 8007007e
Terminating W3_SERVER object
InitComplete event signalled
Report ListenerChannel stopped due to failure; ProtocolId:http, ListenerChannelId:0
Process Model Shutdown called
Failed to start 'HostedWASStart'.  Error = 38246848
HostableWebCore activation failed.
Unable to start iisexpress.

The specified module could not be found.
For more information about the error, run iisexpress.exe with the tracing switch enabled (/trace:error).

Any got any ideas? I'll try Process Monitor and see.

So far, IIS Express is proving to be just another thing to learn and go wrong.


回答1:


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.




回答2:


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!




回答3:


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




回答4:


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/)




回答5:


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




回答6:


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



来源:https://stackoverflow.com/questions/11687267/iis-express-will-not-start

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