看来NetTcpBinding和Teredo不一起工作。我遇到了和这篇老文章一样的问题:http://social.msdn.microsoft.com/Forums/sr-Latn-CS/wcf/thread/bc331bb8-8ce5-4c69-a9cb-e48eda5fd0ba
还有其他人碰到这个并解决了吗?我正在本地运行一个servicehost和客户端,并且可以很好地实现ping6。但是NetTcpBinding拒绝工作,尽管原始套接字Teredo测试工作得很好。
我在底层的TcpTransportBindingElement上启用了Teredo,但是它没有帮助。
myNetTcpBinding.CreateBindingElements().ToList();
var bindingElements =
TcpTransportBindingElement tcpBindingElement = bindingElements.FirstOrDefault(be => be is TcpTransportBindingElement)为TcpTransportBindingElement;
tcpBindingElement.TeredoEnabled =真;
当底层套接字支持NetTcpBinding时,MS怎么可能错过了对Teredo的支持?
发布于 2011-04-06 17:11:43
你就是这样做的:
CustomBinding b = new CustomBinding(new NetTcpBinding(SecurityMode.None));
b.Elements.Find<TcpTransportBindingElement>().TeredoEnabled = true;https://stackoverflow.com/questions/5569758
复制相似问题