I'm trying to build a Window Mobile tool that posts data back to my server at intervals.
I'm using this code to do the posting (or getting... technically speaking...)
Function postData(ByVal strData As String)
Dim URL As String = "
http://myurl.com/myfile.asp?data=" & strData
Dim web As WebRequest
web = WebRequest.Create(URL)
web.Timeout = 5000
web.GetResponse()
web = Nothing
End Function
I call the postData function from a timer every 30 seconds...
the first 2 posts, everything get through just fine, de third time (and everytime after) I get timeout errors...
restarting the app gives me another 2 posts.. and then... errors...
Any clues on how I could solve this?
P.s. Writing in vb.net on a WM6 HTC TYTN II using VS 2008 / CF 3.5