I am using HttpClient class to make a web request to get data from server( httpClient.GetAsync(url, HttpCompletionOption.ResponseContentRead). But randomly i get this error saying Error getting response stream (ReadDone1): ReceiveFailure I have a try catch block around this call but it does not get caught. Instead I get the error in UIApplication.Main(args, null, "AppDelegate"); in the IOS App. Is there any way to catch this error or to fix this error?
Asked
Active
Viewed 2,740 times
1 Answers
2
Are you using ModernHttpClient? If not, give it a shot. It's available as a component and on github. It's a drop in replacement for HttpClient that performs a lot better.

Johan Karlsson
- 898
- 1
- 10
- 24
-
I tried this in the PCL. I dont see this error anymore, but the web requests are lot more slower than before instead of getting faster. I have a listview with images on which the images loaded faster before but now i see only loading placeholder image. – appcoder Jul 21 '14 at 14:21
-
Are the web requests slower using ModernHttp client? Could you share some code in the original question? – Johan Karlsson Jul 23 '14 at 06:32
-
Actually I was not using it correctly. I referenced only in PCL and not in Android/IOS applications. Now I have referenced in all the projects and using it. Have to wait and see if the crashes because of this failure went away. – appcoder Jul 23 '14 at 17:05
-
Is there anything that needs to be done for release mode? In debug mode it works fine, but in release mode i get the System.Net.SocketException for all requests. – appcoder Jul 31 '14 at 02:34
-
Is there any other exception details? Does the app have the correct permissions? – Johan Karlsson Aug 05 '14 at 06:36
-
Sorry I forgot to update the post. I was missing Internet Permission and thats the reason it didnt work in Release mode. I am not sure why it worked in debug mode though. – appcoder Aug 05 '14 at 11:32