标签:
1. 运行self-hosting之后报错:
System.ServiceModel.AddressAccessDeniedException‘ occurred in System.Servic
System.ServiceModel.AddressAccessDeniedException: ... http://+:9999//calculatorService/...
以管理员权限运行cmd,解决HTTP名字空间保护的问题。打开了cmd之后,运行
"netsh add urlacl http://+:9999//calculatorService/ user=everyone"
2.
System.ServiceModel.CommunicationObjectFaultedException
The communication object, System.ServiceModel.ServiceHost, cannot be used for communication
并且查看stack 中显示 timeout,猜想估计是权限不够,重启vs,右击选择属性->兼容性->以管理员身份运行。
成功
标签:
原文地址:http://my.oschina.net/u/2368952/blog/471081