【发布时间】:2010-11-24 10:50:38
【问题描述】:
我使用 wsHttpBinding 创建了一个 WCF 服务,该服务使用 asp.net 成员资格提供程序进行身份验证。我可以成功地在服务器上托管服务。但我的问题是wiered。 (无论域如何,我都可以在浏览器中看到 .svc 和 wsdl 文件)我只能从我的机器或同一域中的任何其他机器使用该服务。如果我尝试通过应用程序(Windows 应用程序)从其他域访问服务。它给了我错误信息:-
“通信对象 System.ServiceModel.Channels.ServiceChannel 处于故障状态,无法用于通信”
堆栈跟踪: 服务器堆栈跟踪: 在 System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan 超时)
在 [0] 处重新抛出异常:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 类型)
在 System.ServiceModel.ICommunicationObject.Close(时间跨度超时)
在 System.ServiceModel.ClientBase1.System.ServiceModel.ICommunicationObject.Close(TimeSpan timeout)
at System.ServiceModel.ClientBase1.Close()
在 System.ServiceModel.ClientBase`1.System.IDisposable.Dispose()
在 AOLICWindows.Forms.SynchronizeTest.btnRegistration_Click(Object sender, EventArgs e)
【问题讨论】:
标签: wcf