从单个客户端获取 System.ServiceModel.CommunicationObjectAbortedException
我们有一位现场客户在新机器上安装了我们的客户端应用程序。当他们尝试登录时;它调用 WCF Web 服务;他们收到以下错误:
System.ServiceModel.CommunicationObjectAbortedException
“通信对象 System.ServiceModel.Channels.ServiceChannel 无法用于通信,因为它已被中止。”
他们安装在另一台机器上,没有任何问题。该应用程序安装在多个位置,没有任何问题。
知道为什么它不能在单台机器上运行吗?该机器运行的是 Windows 7,但该应用程序正在其他装有 Windows 7 的机器上运行。
如有任何想法,我们将不胜感激。
We have a customer in the field that installed our client app on a new machine. When they try and login; which calls a WCF web service; they get the following error:
System.ServiceModel.CommunicationObjectAbortedException
"The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it has been Aborted."
They installed on another machine, and had no problem. The app is installed at several locations with no problems.
Any idea why it does not work on a single machine? The machine is running Windows 7, but the app is running on other machines with Windows 7.
Any ideas would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您如何拨打服务电话?
从你所说的来看,这听起来有点像服务调用失败,并且不知何故你试图对实现 IChannel 的对象进行方法调用,即它位于 using 块中,并且 dispose 方法正在崩溃。
发布一些代码?
How are you making your calls to the service?
From what you've said it sounds a bit like the service call is failing and somehow you are trying to make a method call on the object that implements IChannel, i.e., it's in a using block and the dispose method is blowing up.
Post some code?
这是代码:
但是,就像我上面所说的,它在其他几台计算机上运行没有问题。只是不在一台计算机上工作。我在想也许需要安装一些 .net 库或者其他东西。
Here is the code:
But, like I said above, it is working on several other computers with no problems. Just not working on a single computer. Was thinking maybe some .net lib needs installed or something.