System.ServiceModel.AddressAccessDeniedException
问题描述
System.ServiceModel.AddressAccessDeniedException: HTTP could not register URLhttp://+:8998/AutoSystemMessageService.svc/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details). ---> System.net/base/dotnet" class="replace_word" title=".NET知识库" target="_blank" style="color: rgb(223, 52, 52); text-decoration: none; font-weight: bold;">.NET.HttpListenerException: 拒绝访问。
解决方案
管理员运行 CMD,执行下面的命令即可
netsh http add urlacl url=http://+:8998/AutoSystemMessageService.svc/ user="\Everyone"