Ok, Iโve tried the last couple of hours and I give up: Iโm developing for a mobile device (Win CE on Unitech HT660) and has a strange thing: I try to communicate with the service on my PC and I use TCPClient for it.
This works fine, except for one big problem: As soon as I disconnect the USB cable that I use to copy files from VS during program startup, TCPClient throws a SocketException that the socket connection could not be completed because the target machine is active refused it (not in case the firewall is turned off and the service is listening)
And it becomes weirder: if the cable is connected, and I delete it after the program has made the connection, everything works fine, I can send and receive data without a cable, I just canโt connect without a cable.
Btw: This is the same story with MySQLConnection from the MySQL.NET Connector. It works with the cable, but if it is removed without an established connection, the connection cannot be made.
Any ideas on this?
Thanks in advance!
PS: One thing I forgot to mention: I use wireless to connect to my network, and IE, as well as checking the computer using the service and mysql database, works on it.
c # mysql windows-ce compact-framework tcp
FinalNotriX
source share