IIS Express will not start

Viewed 37352

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.

10 Answers

using rider i had to remove this config file found here and that worked \.idea\config\applicationhost.config

think this was caused when i removed VS

I has 2 things to do to make it work

  1. try as everybody do

    1.1. Delete all files in C:\{users}\My Documents\IIS Express\config
    (Note: Don't worry it will re-create it automatically, if you afraid you can copy to some other place first)


  1. If it still not work, try this below

    2.1. Delete all files in {your project}\.vs\{your project}\config
    (Note: .vs\ folder is hidden make sure you show hidden folder first)

    2.2. in Visual Studio > Right click on your Project > select Properties

    2.3. Select "Web" Tab > in Project URL > change your port (Example: change from http://localhost:1096/ to http://localhost:1097/)

    2.4. Save and run your Project again.

Posting a linkback here + some more detail on Rider since this answer is the first that comes up in Google

This happened for me when launching a project in Rider which was working in VS 2019

This can happen if the bitness of IISExpress is incorrectly set -> your x86 program files folder instead of the 64bit program files folder

enter image description here

IIS Express 800700c1 error with Visual Studio 2015 ASP.Net MVC

Related