看來NetTcpBinding和Teredo不能一起工作。我遇到了同樣的問題,因爲這個舊帖子:http://social.msdn.microsoft.com/Forums/sr-Latn-CS/wcf/thread/bc331bb8-8ce5-4c69-a9cb-e48eda5fd0baNetTcpBinding&Teredo
其他人碰到這個並解決它?我在本地運行一個服務主機和客戶端,可以ping6就好了。但NetTcpBinding拒絕工作,儘管原始的Socket Teredo測試工作得很好。
我在基礎TcpTransportBindingElement上啓用Teredo,但它沒有幫助。
var bindingElements = myNetTcpBinding.CreateBindingElements()。ToList();
TcpTransportBindingElement tcpBindingElement = bindingElements.FirstOrDefault(是=> 是是TcpTransportBindingElement)作爲 TcpTransportBindingElement;
tcpBindingElement.TeredoEnabled = true;
當底層Socket支持它時,MS如何錯過NetTcpBinding上的Teredo支持?