troubleshooting Question

webrequest timeouts at 3rd request

Avatar of palloquin
palloquin asked on
.NET ProgrammingSmartphone ProgrammingVisual Basic.NET
4 Comments1 Solution1355 ViewsLast Modified:
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 = "" & strData
            Dim web As WebRequest
            web = WebRequest.Create(URL)
            web.Timeout = 5000
            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 on a WM6 HTC TYTN II using VS 2008 / CF 3.5

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros