Wierd exception with WebClient

Alexander Blohmé 1 Reputation point

Hello, if the domain is wrong when doing a WebClient DownloadStringAsync I get this exception (see image):


I try to add the: try catch exception inside the webclient function that I use, but it still hits at ApplicationMain, how can I make thsi better so I can display a warning to the user instead of making the app crash?

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
{count} votes