[英]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.