Process.Start to open an URL, getting an Exception?

I had a similar issue trying this with .NET Core and getting a Win32Exception, I dealt with it like so:

var ps = new ProcessStartInfo("http://myurl")
{ 
    UseShellExecute = true, 
    Verb = "open" 
};
Process.Start(ps);

Leave a Comment