日期:2014-05-18  浏览次数:20804 次

WCF中的wsDualHttpBinding通讯问题
利用wcf的回调机制,编写程序时,把服务发布到本地的IIS上调试没有问题,但发布到别的机器上,进行局域网内调试时,连接一直不能打开,报错为:
绑定类型:wsDualHttpBinding时出错,basicHttpBinding,wsHttpBinding时正常通信。 


System.TimeoutException: The open operation did not complete within the allotted timeout of 00:05:00. The time allotted to this operation may have been a portion of a longer timeout.

Server stack trace: 
  at System.ServiceModel.Channels.ReliableRequestor.Request(TimeSpan timeout)
  at System.ServiceModel.Channels.CreateSequenceReliableRequestor.RequestCreateSequence(UniqueId offerId, TimeSpan timeout)
  at System.ServiceModel.Channels.ClientReliableSession.Open(TimeSpan timeout)
  at System.ServiceModel.Channels.ClientReliableDuplexSessionChannel.OnOpen(TimeSpan timeout)
  at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
  at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
  at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
  at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
  at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
  at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
  at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
  at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
  at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
  at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
  at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
  at ClientTest.boxianli_dev_beijing_demetersoft_com.IService1.MyOperation1(String myValue)
  at ClientTest.boxianli_dev_beijing_demetersoft_com.Service1Client.MyOperation1(String myValue) in D:\\workspace\\studyProject\\2008-2-19\\wcf\\basicwcf\\WcfServiceTest\\ClientTest\\Service References\\boxianli-dev.beijing.demetersoft.com.cs:line 119
  at ClientTest.Form1.button1_Click(Object sender, EventArgs e) in D:\\workspace\\studyProject\\2008-2-19\\wcf\\basicwcf\\WcfServiceTest\\ClientTest\\Form1.cs:line 28"

------解决方案--------------------
友情UP一下 目前还没接触wcf 猜估计是权限问题