【问题标题】:WCF on Windows 7 not workingWindows 7 上的 WCF 无法正常工作
【发布时间】:2010-01-14 20:04:56
【问题描述】:

我正在使用 iDesign 中关于单向调用的示例。我可以让它在 Vista 机器(VS2008)上工作,但不能在 Windows 7 机器(VS2010)上工作。

我收到此错误:

HTTP could not register URL http://+:8001/MyService/. Your process does not have access rights to this namespace

ServiceHost host = new ServiceHost(typeof(MyService));
host.Open();

我在host.Open(); 行收到错误消息。我注意到windows首先要求一些防火墙并给予我做过的许可,但它仍然无法正常工作。我能做什么?

【问题讨论】:

    标签: wcf windows-7 firewall


    【解决方案1】:

    这与 vista 和更高版本的 windows 如何处理端口访问有关。下面的帖子有你需要运行的命令。

    看看这个post

    【讨论】:

      【解决方案2】:

      您是否保留了该命名空间?异常消息中的link 告诉您如何,但是您似乎错过或没有得到它

      打开提升的命令提示符并运行

      netsh http add urlacl url=http://+:8001/MyService/ user=DOMAIN\user
      

      将 DOMAIN\user 替换为您的帐户详细信息或合适的组

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-08-13
        • 2013-11-13
        • 1970-01-01
        相关资源
        最近更新 更多