Home All Groups Group Topic Archive Search About

"unable to write data to transport connection" error

Author
22 Mar 2006 4:30 PM
Rof
Hi everybody.

Yes, I know there are a number of posts about this, but many of them
have not been answered and of those that have been, I can't find one
that exactly fits.

I am working in vb.net using a TCPClient object and sending commands to
a remote, IP-aware device. All goes swimmingly for a while, then I get
the above error.

The exception's "InnerException" is a "SocketError", with the message,
"An existing connection was forcibly closed by the remote host"

It's usually about 5 minutes or so before it gives up. The client who
owns the device says another version of our software connects fine all
the time, via a serial-to-ip conversion device/program. So it's
unlikely to be the device itself, despite the inner exception message.

I have tried both send and receive timeouts on the TCPClient - no
change.

I am at a loss - any ideas out there?

TIA,
Peter Royle

AddThis Social Bookmark Button