Run HTTP in vs cannot register URL

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.