❔ IISExpress keeps failing to start site

I am running this command based on Rider's run config:
C:/Program Files/IIS Express/iisexpress.exe /config:C:/Dev/App/.idea/config/applicationhost.config /site:LexisAdvance.Online.Web /apppool:Clr4IntegratedAppPool /trace:debug
C:/Program Files/IIS Express/iisexpress.exe /config:C:/Dev/App/.idea/config/applicationhost.config /site:LexisAdvance.Online.Web /apppool:Clr4IntegratedAppPool /trace:debug
I keep getting this debug output logged
Starting IIS Express ...
36524 iiscore!W3_SERVER::Initialize [w3server.cxx @ 245]:Initializing the W3 Server Started CTC = 18880406
36524 iiscore!W3_SERVER::Initialize [w3server.cxx @ 613]:W3 Server initializing WinSock. CTC = 18880421
36524 iiscore!W3_SERVER::Initialize [w3server.cxx @ 638]:W3 Server WinSock initialized. CTC = 18880421
36524 iiscore!W3_SERVER::Initialize [w3server.cxx @ 673]:W3 Server ThreadPool initialized (ipm has signalled). CTC = 18880421
Inetinfo: Failed reading registry value
36524 iisutil!ReadMultiStringParameterValueFromAnyService [helpfunc.cxx @ 490]:Inetinfo: Failed reading registry value
Error(80070002): The system cannot find the file specified.

44832 w3wphost!LISTENER_CHANNEL::HandleStartListenerChannel [listener_channel.cxx @ 909]:Start listenerChannel http:0
Failed to call HttpAddUrl with http://localhost:61700/
44832 w3dt!BINDING_TABLE::ProcessApplicationBindings [binding_table.cxx @ 1847]:Failed to call HttpAddUrl with http://localhost:61700/
Error(80070020): The process cannot access the file because it is being used by another process.

Failed to register URL "http://localhost:61700/" for site "LexisAdvance.Online.Web" application "/". Error description: The process cannot access the file because it is being used by another process. (0x80070020)
Successfully registered URL "https://localhost:44300/" for site "LexisAdvance.Online.Web" application "/"
Registration completed for site "LexisAdvance.Online.Web"
44832 w3dt!WP_CONTEXT::Initialize [wpcontext.cxx @ 213]:AppPool 'Clr4IntegratedAppPool' initialized
36524 w3wphost!WP_IPM::WaitForInitComplete [wpipm.cxx @ 1620]:InitComplete event signalled
IIS Express is running.
Enter 'Q' to stop IIS Express
Starting IIS Express ...
36524 iiscore!W3_SERVER::Initialize [w3server.cxx @ 245]:Initializing the W3 Server Started CTC = 18880406
36524 iiscore!W3_SERVER::Initialize [w3server.cxx @ 613]:W3 Server initializing WinSock. CTC = 18880421
36524 iiscore!W3_SERVER::Initialize [w3server.cxx @ 638]:W3 Server WinSock initialized. CTC = 18880421
36524 iiscore!W3_SERVER::Initialize [w3server.cxx @ 673]:W3 Server ThreadPool initialized (ipm has signalled). CTC = 18880421
Inetinfo: Failed reading registry value
36524 iisutil!ReadMultiStringParameterValueFromAnyService [helpfunc.cxx @ 490]:Inetinfo: Failed reading registry value
Error(80070002): The system cannot find the file specified.

44832 w3wphost!LISTENER_CHANNEL::HandleStartListenerChannel [listener_channel.cxx @ 909]:Start listenerChannel http:0
Failed to call HttpAddUrl with http://localhost:61700/
44832 w3dt!BINDING_TABLE::ProcessApplicationBindings [binding_table.cxx @ 1847]:Failed to call HttpAddUrl with http://localhost:61700/
Error(80070020): The process cannot access the file because it is being used by another process.

Failed to register URL "http://localhost:61700/" for site "LexisAdvance.Online.Web" application "/". Error description: The process cannot access the file because it is being used by another process. (0x80070020)
Successfully registered URL "https://localhost:44300/" for site "LexisAdvance.Online.Web" application "/"
Registration completed for site "LexisAdvance.Online.Web"
44832 w3dt!WP_CONTEXT::Initialize [wpcontext.cxx @ 213]:AppPool 'Clr4IntegratedAppPool' initialized
36524 w3wphost!WP_IPM::WaitForInitComplete [wpipm.cxx @ 1620]:InitComplete event signalled
IIS Express is running.
Enter 'Q' to stop IIS Express
I have tried using netstat as well as TCPView and can't fine port 61700 in use anywhere. I have looked all over, with ChatGPT's help and without and I can't find anything besides the usual netstat advice. I'm trying to avoid changing the port no. because the one I'm using is set up in a few projects
2 Replies
Mustey
Mustey2y ago
there could be many reasons for this possible fixes are
run as administrator
close/delete skype and teamviewer because they mess with iis
check if you have access to the port via firewall
delete temporary file
run as administrator
close/delete skype and teamviewer because they mess with iis
check if you have access to the port via firewall
delete temporary file
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server