I have an issue on Windows 8 C# library for a metro application. I use an HttpWebRequest object to send datas and receive server response with BeginGetRequestStream method. But when I go background foreground several times I never reaching this code :
HttpWebRequest req = HttpWebRequest.CreateHttp(monUri); req.BeginGetRequestStream(result => { /* My Code */ },req);
I found this topic Windows 8.1 App - HttpWebRequest working only once but I cannot use "await" because I am in a C# portable library.
Moreover I have try to abort all connexion but when I start a new one I am already locked.
On network stacktrace it is locked at : Exiting HttpWebRequest#44973269::BeginGetRequestStream() -> ContextAwareResult#52835420
Several things:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.