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

后端 未结 5 1394
终归单人心
终归单人心 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 08:58

    Root path URL (http://+:8080/) permissions are needed in your case:

    netsh http add urlacl url=http://+:8080/ user=%USERDOMAIN%\%USERNAME%
    

    show all URL reservations:

    netsh http show urlacl | FIND "URL"
    

提交回复
热议问题