Place a try/catch around the .EndGetResponse() call. I believe this is where the exception is being thrown.
Thank. Have tried this and not working. – MilkBottle Mar 24 at 0:42.
First of all, I hope you don't intend to catch all exceptions and ignore them all. You would be ignoring exceptions that have nothing to do with your network connection failing. Second, you need to place the try/catch around the code that might throw the exception: public void OnGetBuffer(IAsyncResult asr) { HttpWebResponse webResp; try { webResp = (HttpWebResponse)webReq.
EndGetResponse(asr); } Catch (WebException ex) { // Do something to decide whether to retry, then retry or else throw; // Re-throw if you're not going to handle the exception } Deployment.Current.Dispatcher. BeginInvoke(() => { using (Stream streamResult = webResp. GetResponseStream()) { // Do something with the stream } }); }.
I have tried all combination of Try-statement in all possible scenario. No can do. It seems the dispatcher lock out the thread.
I will give up on this method and try other way. Thank anyway. – MilkBottle Apr 15 at 10:09.
Try using the WebClient object. Then in the completed event handler the error is returned as e.Error.
Thank. Know about this but I need to use HttpWebRequest. – MilkBottle Mar 24 at 0:39.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.