Windows服务-网络连接问题 [英] Windows Service - Network Connection Problem

查看:66
本文介绍了Windows服务-网络连接问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了一个用于GPRS通信的Windows服务,该服务正常运行,但是在这之间,它进入catch块,并引发异常,例如

无法从传输连接中读取数据:连接尝试失败,因为一段时间后被连接方未正确响应,或者由于连接主机未能响应而建立的连接失败."

我已经安装了网络监视器,并且也验证了当前的通信IP地址,但是它显示TCP连接是连接断开的原因.
请为我提供一个解决方案,无法从传输连接中读取数据:"

I have written a windows service for GPRS communication, The service is running properly normally, but in between, it enters into the catch block, and throws an exception as,

"Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because connected host has failed to respond."

I have installed Network Monitor, and verify the current communication IP address too, but it shows the TCP Connection as a reason for connection out.

Kindly provide me a solution, " Unable to read data from the transport connection:"

推荐答案

此消息表明目标系统未及时响应.由于您的服务在大多数时间似乎都可以正常工作,因此该问题很可能在远程单元中发现.您可以从该设备访问错误日志吗?
This message indicates that the target system is not responding in a timely way. Since your service seems to work properly most of the time, the problem is likely to be found in the remote unit. Can you access error logs from that device?


这篇关于Windows服务-网络连接问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆