从单个客户端获取 System.ServiceModel.CommunicationObjectAbortedException

发布于 2024-08-12 14:18:55 字数 356 浏览 5 评论 0原文

我们有一位现场客户在新机器上安装了我们的客户端应用程序。当他们尝试登录时;它调用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

悸初 2024-08-19 14:18:55

您如何拨打服务电话?

从你所说的来看,这听起来有点像服务调用失败,并且不知何故你试图对实现 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?

执妄 2024-08-19 14:18:55

这是代码:

try {
   userService = Services.UserServiceClient();
   LoggedInUser.User = userService.Login(tbUsername.Text, tbPassword.Text); 
   userService.Close();
}
catch... { }

但是,就像我上面所说的,它在其他几台计算机上运行没有问题。只是不在一台计算机上工作。我在想也许需要安装一些 .net 库或者其他东西。

Here is the code:

try {
   userService = Services.UserServiceClient();
   LoggedInUser.User = userService.Login(tbUsername.Text, tbPassword.Text); 
   userService.Close();
}
catch... { }

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文