c# - HttpWebResponse returns 404 error -
How to ignore Httpwebresponse 404 error and continue with it? It is easy to find exceptions in input because it happens when it is very rare.
I assume that you have a code somewhere, such as in your code:
http web response feedback = request. Gateresons () HTTP Webbations;
Change it with:
http web response response; Try {response = request.GetResponse () as HttpWebResponse; } Catch (WebException pre) {response = ex. Answer as HPS WP; }
Comments
Post a Comment