WCF ServiceHost access rights

前端 未结 10 1806
时光说笑
时光说笑 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 09:55

    I am working on Windows Vista. Even i faced the same problem but when i tried to run VS 2008 with administrative privileges, the issue resolved and my service was up and running. :)

    0 讨论(0)
  • 2020-11-27 09:55

    Running Visual Studio as administrator could fix the issue, but if you use Visual Studio with for example TortoiseSVN, you cannot commit any changes. Another possible solution would be to run the service as administrator and the rest Visual Studio as local user.

    0 讨论(0)
  • 2020-11-27 09:57

    Other option that work is ..,

    If you change de indentity in application pool, you can run the code, the idea is change the aplication pool execution account for one account with more privileges,

    For more details use this blog

    https://letrasandnumeros.com/2017/11/27/http-could-not-register-url-http-80-hellowcf-your-process-does-not-have-access-rights-to-this-namespace/

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

    Please open your Visual Studio as administrator:

    enter image description here

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

    If you are running via the IDE, running as administrator should help. To do this locate the Visual Studio 2008/10 application icon, right click it and select "Run as administrator"

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

    The issue is that the URL is being blocked from being created by Windows.

    Steps to fix: Run command prompt as an administrator. Add the URL to the ACL

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