WCF ServiceHost access rights

前端 未结 10 1807
时光说笑
时光说笑 2020-11-27 09:36

I get the following error when going through the WCF tutorial.

HTTP could not register URL http://+:8000/ServiceModelSamples/Service/. Your process does not have acc

相关标签:
10条回答
  • 2020-11-27 10:12

    Another solution is to use the address

    http://localhost:8732/Design_Time_Addresses/YOUR_ADDRESS .

    .NET Framework (3.5) automatically register this address (http://*:8732/Design_Time_Addresses) for debugging scope. This is useful when you need to host services inside visual studio for debugging or testing. Don't use this on production...

    0 讨论(0)
  • 2020-11-27 10:15

    please open your Visual Studio in Administration Mode then try it.

    0 讨论(0)
  • 2020-11-27 10:16

    Open Visual Studio as an Administrator.. It will run.

    0 讨论(0)
  • 2020-11-27 10:17

    Open a command prompt as the administrator and you write below command to add your URL:

    netsh http add urlacl url=http://+:8000/YourServiceLibrary/YourService user=Everyone
    
    0 讨论(0)
提交回复
热议问题