D
Damon Payne
I did my duedilligence and searched before posting this, I did not find
an answer to my issue.
I am using the new OpenNetCF FTP classes to FTP a series of images to a
server. After several successful connections, this error happens each
time:
Exception: System.Net.Sockets.SocketException
Message: No connection could be made because the target machine
actively refused it.
The device is CE.Net, sitting in a cradle, the communications are
happening over active sync.
All of the streams releated to the connections are closed in finally{}
blocks. The error does not go away without re-starting the application
or sometimes the device. It seems as though some type of TCP resources
are not being cleaned up until the entire program exits. I have tried
sleeping after each connection, Calling GC and WaitOnPendingFinalizers.
(I know its ridiculous)
I'm looking for ideas as to what else I could try to force the "clean
up" of whatever resources/settings/sockets/DNS could be causing the
issue. I'll try any crazy idea at this point.
an answer to my issue.
I am using the new OpenNetCF FTP classes to FTP a series of images to a
server. After several successful connections, this error happens each
time:
Exception: System.Net.Sockets.SocketException
Message: No connection could be made because the target machine
actively refused it.
The device is CE.Net, sitting in a cradle, the communications are
happening over active sync.
All of the streams releated to the connections are closed in finally{}
blocks. The error does not go away without re-starting the application
or sometimes the device. It seems as though some type of TCP resources
are not being cleaned up until the entire program exits. I have tried
sleeping after each connection, Calling GC and WaitOnPendingFinalizers.
(I know its ridiculous)
I'm looking for ideas as to what else I could try to force the "clean
up" of whatever resources/settings/sockets/DNS could be causing the
issue. I'll try any crazy idea at this point.