Thursday, March 11, 2010

HTTP could not register URL http://+:8000/.

When i was trying to execute a WCF application created using a previos version of Windows (XP) came across the following error.

HTTP could not register URL http://+:8000/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details)

You can expect this error when trying to run a WCF service with an HTTP binding on windows VISTA. As you may have already noticed the culprit is the new Vista security settings. Usually the Visual Studio runs under the logged in user account which may not have sufficient priviledges to listen at a particular http address.

Find the solution here - http://blogs.msdn.com/amitlale/archive/2007/01/29/addressaccessdeniedexception-cause-and-solution.aspx

Onething missing in the solutions was how to run the command prompt as the administrator.Type "command Prompt" - in the start search box, then the command prompt would appear in the search results list, right click an say run as administrator.

But you can avoid all this hassel by running the VS studio as the administrator. :o) have fun!!

No comments:

Post a Comment