Resources
Http://www.java123.net/detail/view-449670.html
Http://www.cnblogs.com/jiewei915/archive/2010/06/21/1762066.html
Problem phenomenon
Host when the service is turned on. Open ();
Report exception: HTTP could not register URL
http://+:9999/CalculatorService/. The process does not have access to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for more information).
Analyze problems
HTTP bindings are used, and the registration of HTTP in the system is managed by. Sys.
Consider the possibility that HTTP. sys requires higher permissions.
Solve the problem
Run with admin privileges in Win7 vs, open just the project to run, decisive no problem.
Problem extension
Ms Official explanation: Portal
You must use administrative privileges to run the process that hosts the WCF service.
If you are running services from within Visual Studio 2012, you must run Visual Studio 2012 as an administrator. To do this, click Start, right click Visual Studio 2012, and then select Run as Administrator. If you run the service from a command-line prompt, you must start the command-line prompt as an administrator in a similar manner. Click Start, right-click Command Prompt, and then select Run as Administrator.
Run HTTP in vs cannot register URL