Default Browser

Launch Image URL in Default Browser

If you want to launch a URL in the default browser using C# from something like a Windows Forms application, you would normally just do what I described in this post:

http://devtoolshed.blogspot.com/2008/09/launch-url-in-default-browser-using-c.html

But I found something very surprising. If you attempt to do this with a URL that is a direct path to an image such as this:

Launch URL in Default Browser using C#

After deploying an application using the standard way of launching a URL in the default browser:

System.Diagnostics.Process.Start("http://www.google.com");

We found that almost randomly, an exception is thrown on certain user's machines when this method is called. I did some research and a couple of interesting posts came up.