I am trying to convert a windows forms application to a windows mobile application (windows mobile 6 professional). It needs to get an XML document from a web server. It works fine if the device already has an open network connection, say if you open IE before running the app. But it hangs if there is not an open connection.
I have figured out a couple of different ways to open a connection if the connection did not already exist, but each hangs the app if the connection is already open.
What is the correct way to test for an open connection, and if one does not already exist, open one?
Thanks