Using Visual Studio 2008.  The user's PC is running Windows 7.

I have this code fragment in a data grid view cell double-click event.
System.Diagnostics.Process process = new System.Diagnostics.Process();
StringBuilder URI = new StringBuilder();
URI.Append(TTNo.Substring(1, TTNo.Length - 1));
process.StartInfo.FileName = URI.ToString();

Open in new window

A user just began getting the error below:
System.ComponentModel.Win32Exception: No application with the specified file for this operation at System.Diagnostics.Process.StartWithShellExecute(ProcessStartInfoStartInfo) at System.Diagnostics.Process.Start() at myapp.dgvTracking_CellDoubleClick(Object sender, DataGridViewCellArgs e)
This has worked for several years without a problem. The user is not aware of any updates to his system.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This error is generally caused by the user not having a default web browser set on their machine.  Perhaps they previously used a browser that was recently uninstalled, or else the default browser got reset or something due to a software update.

If you have the user get into a web browser and set it as default, or else associate a default program to open web addresses (htm, html) then the error should go away.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.