WCF ServiceHost access rights

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

提交回复
热议问题