简体   繁体   English

WCF Tcp绑定“请求的地址在其上下文中无效”错误

[英]WCF Tcp Binding “The requested address is not valid in its context” Error

I have a WCF server using a netTcpBinding and a client. 我有一个使用netTcpBinding和客户端的WCF服务器。 When I run them locally they work fine. 当我在本地运行它们时,它们可以正常工作。

If I put the server on a Windows Server 2008 machine and try to run it, it fails unless I change the address to localhost, but no clients can connect to it. 如果我将服务器放在Windows Server 2008计算机上并尝试运行它,除非将地址更改为localhost,否则它将失败,但是没有客户端可以连接到它。

I can run the client from the server to connect to a Windows Xp machine running the server and all is well. 我可以从服务器运行客户端,以连接到运行该服务器的Windows Xp计算机,一切正常。

Here is the server bindings: 这是服务器绑定:

<system.serviceModel>
    <services>
      <service name="Ricochet.Server.Controller">
        <endpoint address="net.tcp://myServerIP:3315" binding="netTcpBinding" contract="Ricochet.Interfaces.IServer" bindingConfiguration="InsecureTcp"/>
      </service>
    </services>

    <bindings>
      <netTcpBinding>
        <binding name="InsecureTcp">
          <security mode="None"/>
        </binding>
      </netTcpBinding>
    </bindings>
  </system.serviceModel>

I created rules on the firewall to allow all traffic to the port I am using here, but no luck. 我在防火墙上创建了规则,以允许所有流量都流到我在此使用的端口,但是没有运气。 Is there something else I need to do on Windows Server 2003 to get this to work? 我需要在Windows Server 2003上执行其他操作才能使其正常工作吗?

Net tcp binding reqiures Network Activation Services, which is only available on Windows 2008, Vista and Windows 7. This could be part of your problem. Net tcp绑定需要网络激活服务,该服务仅在Windows 2008,Vista和Windows 7上可用。这可能是您的问题的一部分。

The other is the firewall, have you opened port 3315? 另一个是防火墙,您是否打开了端口3315?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 套接字错误请求的地址在其上下文中无效 - Socket Error The requested address is not valid in its context 面临错误 tcp 侦听器 SocketException:{0}System.Net.Sockets.SocketException (0x80004005):请求的地址在其上下文中无效 - Facing error tcp listener SocketException: {0}System.Net.Sockets.SocketException (0x80004005): The requested address is not valid in its context “请求的地址在其上下文中无效” SocketException - “The requested address is not valid in its context” SocketException c#TCP / IP通信错误:请求的地址在其自身上下文中无效 - c# TCP/IP communication error: Address requested non valid in own context 当我尝试侦听端口时,请求的地址在其上下文中无效 - The requested address is not valid in its context when I try to listen a port 获取请求的地址在其上下文中无效。 在我的聊天应用程序中 - Getting The requested address is not valid in its context. in my chat application SocketException:请求的地址在上下文中无效 - SocketException: The requested address is not valid in the context HttpListener:请求的地址在此上下文中无效 - HttpListener: The requested address is not valid in this context 为什么我的服务器 TcpListener 使用本地地址而不使用公共地址? - 例外:请求的地址在其上下文中无效 - Why is my Server TcpListener Working with Local Address but not with Public Address? - Exception: The requested address is not valid in its context 32feet .NET api拒绝连接“请求的地址在其上下文中无效” - 32feet .NET api refusing to connect “The requested address is not valid in its context”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM