I receive this error when trying to launch IIS Express from Visual Studio with a project that\'s configured to listen to an address other than localhost. Visual Studio free
I face this issue, All I did was go to the web project Properties -> Web -> In the ProjectUrl I clicked on the "Create Virtual Directory" and my issue was fixed.
For me it was the applicationhost.config
file in .vs
folder in my project solution folder(.vs
folder is hidden by default).So,I closed the project and delete the .vs
folder (vs will recreate it again when you open the project) then reopen the project and run it.
I had the same issue with my computer having loads of windows updates.
Spent few hours trying to resolve the issue using above answers with no luck.
In past we have different issues due to anti-virus which caused the application to be blocked by it, so thought to try by disabling it.
At the start, Try to disable your firewall. It helped me. The Eset Smart Security 5 blocked it.
Remove the default website from the <sites> </sites>
<site name="WebSite1" id="1" serverAutoStart="true">
<application path="/">
<virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
</application>
<bindings>
<binding protocol="http" bindingInformation=":8080:localhost" />
</bindings>
</site>
and your own <site> </site>
and run "C:\Program Files\IIS Express\iisexpress.exe"
http://www.iis.net/learn/extensions/using-iis-express/running-iis-express-from-the-command-line
So after trying all the solution, I just uninstall "One Drive" from my PC & the problem is resolved.
N.B: