Blog from Saravanan Arumugam

Let us talk about Technologies

HTTP could not register URL

From here on, I am going try to publish the exceptions/error messages I encounter during the programming and their corresponding resolution.


I wrote a self host in Visual Studio 2005 in Windows XP. It worked fine.

namespace CalculatorHost
    class Program
        static void Main(string[] args)
            ServiceHost host = new ServiceHost(typeof(CalculatorService), 
                new Uri[] { new Uri("http://localhost:8080/Calculator") });
                new BasicHttpBinding(), "");
            ServiceMetadataBehavior behavior = 
                new ServiceMetadataBehavior();
            behavior.HttpGetUrl = new 
            behavior.HttpGetEnabled = true;
            Console.WriteLine("Calculator Service Started!!!"+
                "\nPress enter to stop the service");

I tried to execute the same program in Visual Studio 2010 in Windows 7. But it gave the following exception.

HTTP could not register URL http://+:8080/CalculatorService/Meta/. Your process does not have access rights to this namespace (see for details).

Note: I received the same exception for http://localhost:8080/Calculator as well.


The exception itself has offered helping hands on how to register Http Namespace by saying(see for details).

It takes us to the Microsoft’s title “Configuring HTTP and HTTPS”. The exception above resolved by following the solution under “Configuring Namespace Reservations”.

I ran the following command under the .Net Command Prompt.

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>netsh http add urlacl url

=http://+:8080/CalculatorService/Meta/ user=\Everyone

Url reservation add failed, Error: 5

The requested operation requires elevation (Run as administrator).

I didn’t get through it yet, because by default the .Net command prompt doesn’t have access to register the Http Namespaces.

I reran the .Net command prompt in Administrator mode (Right Click the .Net Command Prompt in Start Menu, and select Run as Administrator).

The same command worked well in Administrator mode.

C:\Windows\system32>netsh http add urlacl url=http://+:8080/CalculatorService/Me

ta/ user=\Everyone

URL reservation successfully added

Another simple alternate to using netsh http command is to run the Visual Studio itself in Administrator mode.

Note: netsh is useful for a verity of work. Refer the following pages for more detail.

Netsh Command Reference

Netsh Commands for Hypertext Transfer Protocol (HTTP)


16 responses to “HTTP could not register URL

  1. Leo Politz March 9, 2011 at 7:33 pm

    I simply want to tell you that I’m very new to blogs and honestly loved you’re website. Most likely I’m likely to bookmark your website . You actually come with awesome articles. Many thanks for sharing your webpage.

  2. Pingback: HTTP could not register URL http://+:80/Temporary_Listen_Addresses/634f73f6-c612-4441-acf8-79ddd5c62f98/ because TCP port 80 is being used by another application. « Blog from Saravanan Arumugam

  3. Pingback: HTTP could not register URL … because TCP port 80 is being used by another application. « Blog from Saravanan Arumugam

  4. forex trading review April 10, 2011 at 4:51 pm

    Ah!!! at last I found what I was looking for. Sometimes it takes so much effort to find even tiny useful piece of information.

  5. botox Kraków April 12, 2011 at 4:53 am

    Thanks a milion for your personal concern plus efforts! These things against your webpage is definitely great. Besides I actually greatly understand a person’s creative ideas. In my opinion these are typically important factors. Anyways many thanks. Fine read.

  6. Desiree Severn April 18, 2011 at 4:29 am

    As i genuinely like the things you publish here. Extremely unusual and even brilliant. 1 dilemma however. I’m operating Chrome through Debian and even pieces from your up-to-date theme articles is a modest wonky. As i notice it’s a fantastic normal put together. However it’s a little something to help you preserve in mind. As i hope going without shoes will certainly allow and even continue to keep up the top high-quality authoring.

  7. a8EDsB April 19, 2011 at 4:57 am

    I want to post quick hello and want to say appriciate for this good article.

  8. forex system review April 19, 2011 at 7:01 am

    I really like your site. Excellent content. Please continue posting such profound content.

  9. Forest Peregoy April 23, 2011 at 4:29 am

    This is a really great blog. Thx to the auther

  10. Todd Hinahon April 23, 2011 at 7:08 pm

    Howdy blogger, thank you for providing this article.. I found it first-class.

  11. buy anabolics online April 24, 2011 at 8:09 pm

    I’ve lately started a weblog, the information you provide on this website has helped me tremendously. Thanks for your entire time & work.

  12. appliance repair Los Angeles May 4, 2011 at 12:50 pm

    I have to admit that i typically get bored to read the whole thing however i believe you can add some value. Bravo !

    • Purshottam July 4, 2012 at 12:33 pm

      To resolve this problem you have to provide a clientBaseAddress in the binding configuration on the client and specify a different port with respect to service reference port.

  13. Anil October 27, 2012 at 11:25 pm

    Very useful blog. solved similar issue for me within few seconds. Thanks much.

  14. 4xp forex March 19, 2013 at 2:30 pm

    Oh my goodness! Impressive article dude! Thank you, However I am
    going through issues with your RSS. I don’t know why I can’t join it.
    Is there anybody else getting identical RSS problems?
    Anyone who knows the solution will you kindly respond?

  15. Mahesh M September 4, 2013 at 2:28 am

    tanks, solved the issue…

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: