I had a Visual Studio web project that was configured to use IIS Express on port 8080. That should normally be fine and IIS Express is supposed to be able to run without administrator privileges, but when I would try to run the app I would get this error:
Unable to launch the IIS Express Web server.
Failed to register URL "http://localhost:8080/" for site "MySite" application "/". Error description: Access is denied. (0x80070005).
Launching Visual Studio with administrator credentials would cause it to be able to run the application successfully, but that kind of defeated the purpose of using IIS Express in the first place.
It turns out that the problem in my case was that something else had previously created a URL reservation for port http://localhost:8080/. I have no idea what did it, but running this command in Powershell showed the culprit:
[C:\Users\Eric] 5/3/2012 2:39 PM
14> netsh http show urlacl | select-string "8080"
Reserved URL : http://+:8080/
The solution was to run this command in an elevated shell:
[C:\Users\Eric] 5/3/2012 2:39 PM
2> netsh http delete urlacl http://+:8080/
URL reservation successfully deleted
Now I can run my web app from VS without elevation.
Found another solution to this problem:
1) Select web project->Properties
2) Section Web, Sub-section Servers
3) Make sure the NTLM Authentication checkbox is selected.
if you are still facing the same problem the try to use this solution.
Go to project >> Properties >> Web (tab). On Web tab you will see the choices from IIS Express 7/8 (if installed) and in Server Section Use Visual Studio Development Server
Thank you, this worked for me after several online searches.
Thank you, help me solve my problem
Thank you so much! I wish I knew why the urlacl stuff changed on me, I’d been using :8080 for months without issue, then today it just stopped working, this saved me a ton of heartache.
This site definitely has all of the information I needed about this subject and didn’t know who to ask.
My developer is trying to persuade me to move to
.net from PHP. I have always disliked the idea because of the expenses.
But he’s tryiong none the less. I’ve been using WordPress on a variety of websites for about a year and am concerned about switching to another platform.
I have heard great things about blogengine.net. Is there a way I can transfer all my wordpress posts into it?
Any help would be really appreciated!