I'm building application which will be working on pocket device and connect to network by Wi-Fi. On cable my app is working well but when I'm connecting using wi-fi really weird things are happening.
Firstly I'm using HttpWebRequeste/Response to get some xml (I'm deserializing this file to proper class). And this is the moment when usually time-out or occur (on request.GetResponse) even when I set time out to 10000. I use loop to try couple of times to download this file and this work ... for while. After this operation I'm downloading couple of files (witch another function and completely separated objects - but from the same web location) - and really strange thing occurs. When I'm downloading first file this is not my file but xml file again, and when I¡¯m downloading second file it occurs that this is my first file!!!. I notice that this not happening when time out don't occur. I don't know what to do - I always close all streams and response objects and I try to set KeepAlive on HttpWebRequest to False but this bug always occurs.