关于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.\r\n\r\nServer stack trace: \r\n at System.ServiceModel.Channels.ReliableRequestor.Request(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CreateSequenceReliableRequestor.RequestCreateSequence(UniqueId offerId, TimeSpan timeout)\r\n at System.ServiceModel.Channels.ClientReliableSession.Open(TimeSpan timeout)\r\n at System.ServiceModel.Channels.ClientReliableDuplexSessionChannel.OnOpen(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)\r\n at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)\r\n at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)\r\n at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)\r\n\r\nException rethrown at [0]: \r\n at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)\r\n at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)\r\n at ClientTest.boxianli_dev_beijing_demetersoft_com.IService1.MyOperation1(String myValue)\r\n 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\r\n at ClientTest.Form1.button1_Click(Object sender, EventArgs e) in D:\\workspace\\studyProject\\2008-2-19\\wcf\\basicwcf\\WcfServiceTest\\ClientTest\\Form1.cs:line 28"
------解决方案--------------------
友情帮顶
------解决方案--------------------
把配置文件发来看看。