zoukankan      html  css  js  c++  java
  • System.ServiceModel.AddressAccessDeniedException

    发生了 System.ServiceModel.AddressAccessDeniedException
      HResult=0x80131501
      Message=HTTP 无法注册 URL http://+:8998/MyHellowWord/AppServer/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。
      Source=System.ServiceModel
      StackTrace:
       在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
       在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
       在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
       在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
       在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
       在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
       在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
       在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       在 System.ServiceModel.Channels.CommunicationObject.Open()
       在 MyHellowWord.Program.Main(String[] args) 在 G:ProjectsHellowWordMyHellowWordMyHellowWordProgram.cs 中: 第 16 行


    内部异常 1:

    HttpListenerException: 拒绝访问。


    解决办法:

    管理员运行cmd:

    输入:netsh http add urlacl url=http://+:8998/ user="Everyone"

    (netsh http add urlacl url=http://+:8998/AutoSystemMessageService.svc/ user="Everyone")


  • 相关阅读:
    NLP
    Log Collect
    android 客户端 和 新浪微博如何打通的
    学术论文写作的 paper、code 资源
    学术论文写作的 paper、code 资源
    高观点下的高等数学(数学分析、线性代数)
    高观点下的高等数学(数学分析、线性代数)
    弦论 —— 宇宙的琴弦
    弦论 —— 宇宙的琴弦
    流体力学
  • 原文地址:https://www.cnblogs.com/cxsabc/p/10627701.html
Copyright © 2011-2022 走看看