Some web projects are causing me problems while others work fine. I decided to focus on one of the problematic ones.
I'm using Visual Studio 2013 on Windows 7. I think I'm running it as administrator, the window title says PROJECT NAME - Microsoft Visual Studio (Administrator)
.
When I try to run the project I get a popup saying:
Unable to launch the IIS Express Web server.
Failed to register URL "http://localhost:62940/" for site "SITE NAME"
application "/". Error description: Access is denied. (0x80070005).
This does not seem entirely uncommon but I have tried many of the suggestions without luck:
Deleted
%userprofile%\Documents\IISExpress\
, tried to run.netsh http add urlacl url=http://localhost:62940/ user=everyone
, rebooted and tried to run. (Actuallyuser=Alla
since Swedish Windows).netsh http delete urlacl url=http://localhost:62940/
, rebooted and changed from<binding protocol="http" bindingInformation="*:62940:localhost />
to<binding protocol="http" bindingInformation="*:62940:/>
in%userprofile%\Documents\IISExpress\config\applicationhost.config
and tried to run. (It did changed the error message to say... URL "http://*:62940/" ...
.Reinstalled IIS 8.0 Express
Reinstalled Visual Studio 2013
I'm at my wit's end, what am I doing wrong?
Edit 1: If I change the port of the project (e.g. to 55555) it starts... This is not a desirable solution since these projects are worked on by several people. Maybe the port is blocked by something else? If so, is there an easy way to check by what?
Edit 2: Port 62940 seems to be free. Running netstat
does not show any application listening to it. Something else must be wrong.
Edit 3: I tried starting the project today after not touching it for a few months. It worked but I don't know why.
try (as elevated administrator)
After trying a number of suggested solutions without success I just rebooted my PC. After that the problem didn't occur anymore.
Looks like everybody has own problem Just sharing what I did to fix this problem in VS2015 (Windows 8.1), my solution has 6 web sites (not web apps)
See sample solution file ProjectSection(WebsiteProperties):
In my case, I tried to change URL from project properties, restart VS, reboot computer, nothing helped me only this SLN file manipulation fixed my problem.
I solved this issue by killing all instances of iexplorer and iexplorer*32. It looks like Internet Explorer was still in memory holding the port open even though the application window was closed.
Got this error as well lately. Tried all the above fixes, but none worked.
To disable it, type
services.msc
in command prompt, then right click and disable Internet Connection Sharing. I edited the properties of it as well to disable at startup. Mine looks like so now: services capture screenshot.If you're having this after installing Visual Studio 2015 and you can see Error messages in System event log such as this:
Unable to bind to the underlying transport for [::]:{your_port}. . The IP Listen-Only list may contain a reference ...
then you might be missing a registry entry.Run this under administrative command prompt:
netsh http add iplisten ipaddress=::
to fix it.I found the solution described in detail here