C# .NET - cannot catch HttpRequestException in any way possible. Please help.
I have written this very simple code, but for some reason, each time it crashes in Debug mode, I'm getting HttpRequestException despite my attempts to catch it.
What's wrong here, why I cannot actually catch this exception?
2 Replies
have you enabled to catch that exception in visual studio?
That's right, I did at some point!
I've unticked the "stop on this exception", right below the break in IDE and now it works properly.
Really odd that breaking on the exception and then pressing continue made the app crash completely.