【问题标题】:Error hosting WCF on WAS在 WAS 上托管 WCF 时出错
【发布时间】:2011-05-11 18:19:28
【问题描述】:

我在 Windows 服务上托管我的 WCF 应用程序时遇到此错误。该服务托管在服务器上,我想通过互联网访问它。所以我给了它网络服务权限。

Service cannot be started. System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http://+:8085/lupload/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details). ---> System.Net.HttpListenerException: Access is denied
   at System.Net.HttpListener.AddAllPrefixes()
   at System.Net.HttpListener.Start()
   at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
   --- End of inner exception stack trace ---
   at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
   at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
   at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
   at System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.HttpChannelListener.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(Tim...

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

【问题讨论】:

    标签: asp.net wcf was wcf-hosting


    【解决方案1】:

    NetworkService实际上是一个受限账户,你需要去LocalSystem,它相当于一个管理员账户。这会解决你的问题。

    【讨论】:

    • 换了身份后重启了吗?否则,该更改将不会被采纳。
    • 嗯,棘手的一个...你能运行netsh http show servicestate 看看是否已经有另一个进程在监听 HTTP:8085 吗?
    • 此端口上没有运行进程。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多