Good morning everyone, I have a problem when trying to download the Content of a service that has 3800 characters, the following error occurs:
System.Exception: Error HRESULT E_FAIL has-been returned from a call to a COM component.
at System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse (IAsyncResult asyncResult)
at System.Net.Browser.ClientHttpWebRequest. <> c__DisplayClasse. <EndGetResponse> b__d (Object sendState)
at System.Net.Browser.AsyncHelper. <> c__DisplayClass1. <BeginOnUI> b__0 (Object sendState)
--- End of inner exception stack trace ---
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (Task task)
at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess (Task task)
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (Task task)
1.GetResult at Microsoft.Runtime.CompilerServices.TaskAwaiter `()
at MyApp.ConnectionHelper. <postActivationCode> d__0.MoveNext ()}
I tried to modify the MaxResponseContentBufferSize parameter HttpClient with methods PostAsync or GetAsync and has not worked, I changed the type of connection (HtttpClient, HttpWebRequest and WebClient) and occurred same exception, also I have tried to make synchronous process but does not work and the debugger stops the process by the time delay. This exception occurs when trying to read the contents of the response in different formats byte  and string stream. So my question is why occurred this exception, or I can implement another method to download this response without problems to the size large of the answer. Thank you very much to all.