I have an issue where a device has a valid GPRS connection available but is plugged into a Ethernet dock that uses USB Connections. The USB connection makes the device think that it has a Network Card connection even if there is no ethernet cord plugged into the dock itself. When this happens, even though I have a valid GPRS connection available the connection attempts fail because it tries to use the (invalid) Network Card connection.
I have attempted to use the OpenNETCF.Net.ConnectionManager to remedy this, but it's not working how I suspected. Using a combination of the Connectionmanager.Connect() method and the .Net.NetworkInformation.Ping.Send() method, I can accurately determine if the Network Card connection is actually a valid internet connection, but when I tell the .Connect() routine to use the GPRS connection it still fails.
How can I force the application to use a specific connection for the entire life of that application regardless of any other connections that may or may not be available?