Alex Rivera | Logout

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

Asked 2011-10-07T22:23:39.887
34

I'm trying to open an URL following a simple method written all over google and even MSDN. But for unknown reasons I get an Exception as follows:

Win32Exception was unhandled

Message: Application not found

Exception

Here's my code:

private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
    ProcessStartInfo sInfo = new ProcessStartInfo("http://github.com/tbergeron/todoTxt");
    Process.Start(sInfo);
}

Any idea why it is failing?

Thanks a lot!

Edit
Report

1 Answer

-2

Throw start in front of it, if you want to launch in the default browser:

new ProcessStartInfo("start http://github.com/tbergeron/todoTxt");
answered 2011-10-07T22:32:35.993

Your Answer