Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

WebClient issues on restore in iOS 7.1

$
0
0

I have an issue where my app is able to make "WebClient.UploadData" calls after an App Restoration in iOS 7, but not in iOS 7.1. Each instance of the call is with a fresh variable, so I'm thinking there isn't an issue with the WebClient object being in some sort of ghost state.

In particular, aside from 7.0 working as expected, the 7.1 gives the timeout exception below despite the fact that the timeout is set to 30 seconds, which is far longer than any of the UploadData calls require. System.Net.WebException: The request timed out at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in :0 at System.Net.WebClient.UploadDataCore (System.Uri address, System.String method, System.Byte[] data, System.Object userToken) [0x00000] in :0 at System.Net.WebClient.UploadData (System.Uri address, System.String method, System.Byte[] data) [0x00000]

Even though I am using a new object, I was wondering if there might be a workaround, perhaps a way to reset the socket(s).


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>