Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2007

Tip: Looking for answers? Try searching our database.

Process.Start throws exception when starting firefox after firefox crashes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gene Chang - 23 Oct 2007 21:24 GMT
I have an application that starts the default browser by using
Process.Start(URL).  The one time that I get a file not found
exception is when Firefox has crashed and comes up with the "Firefox -
Restore Previous Session" screen.

It does seem to start up but for some reason an exception is thrown
because the browser hasn't started.  

Does anyone know why I get the exception in this case?  I don't want
to just eat the exception because the thing I start isn't necessarily
a URL.  It could be any format that may not have a default
application.  In that case, I want to notify the user that there isn't
anything to handle it.

Thanks.

Gene Chang
cokkiy - 24 Oct 2007 16:44 GMT
Maybe the url is in bad format.
>I have an application that starts the default browser by using
> Process.Start(URL).  The one time that I get a file not found
[quoted text clipped - 13 lines]
>
> Gene Chang
Gene - 25 Oct 2007 19:26 GMT
Nope.  The URL format is fine.  It looks like it might be a known
Firefox issue.  I get the file not found error, but Firefox still
opens properly with the correct page.  What I'm going to do is to
detect if firefox is the default http application.  If it is and the
error is 2 (file not found), then I'm going to eat the exception.  Not
sure if there is any other way...

Thanks.

Gene

> Maybe the url is in bad format.
>
[quoted text clipped - 15 lines]
>
> > Gene Chang

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.