Home > Uncategorized > Fixing the error “Unable to launch the IIS Express Web server. Failed to register URL. Access is denied.”

Fixing the error “Unable to launch the IIS Express Web server. Failed to register URL. Access is denied.”

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.

About these ads
Categories: Uncategorized
  1. Gerhard Kupfer Greyvenstein
    September 20, 2013 at 3:27 am

    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.

  2. Pushpendra Singh
    June 4, 2014 at 3:54 am

    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

  3. Pedro Cabrita
    July 23, 2014 at 7:59 am

    Thank you, help me solve my problem

  4. October 23, 2014 at 3:59 pm

    I don’t even know the way I finished up right here, but I believed
    this put up used to be good. I don’t realize who you are but certainly
    you are going to a well-known blogger for those who aren’t already.
    Cheers!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: