System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http::8080

后端 未结 5 1396
终归单人心
终归单人心 2021-02-02 08:45

I have created my first self-hosted WCF service. I hosted it in a C# console app but it throws an error:

System.ServiceModel.AddressAccessDeniedException

5条回答
  •  滥情空心
    2021-02-02 09:19

    Start the cmd as Administrator and enter:

    netsh http add urlacl url=http://+:8080/MyUri user=DOMAIN\user
    

    this worked for me.

提交回复
热议问题