Link to home
Start Free TrialLog in
Avatar of LeighWardle
LeighWardleFlag for Australia

asked on

VB.Net Project - how to gracefully handle errors resulting from missing DLLs

Hi Experts,

I'm running VS2013 Ultimate.

From time to time I have customers that run the .exe file from a folder that does not have the required DLLs in it.

This throws an unhandled error something like:

System.IO.FileNotFoundException: Could not load file or assembly 'Skybound.VisualTips, Version=1.0.2.0, Culture=neutral, PublicKeyToken=f2d73a45b3e75a83' or one of its dependencies. The system cannot find the file specified.

Open in new window

How can I handle these errors gracefully - so I can give my user an informative  message?

I assume I would need to code a list of the required DLLs because ystem.IO.FileNotFoundException errors could be triggered by other file types.

Regards,
Leigh
Avatar of ste5an
ste5an
Flag of Germany image

How do you distribute your program?
ASKER CERTIFIED SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LeighWardle

ASKER

Thanks, James, your article is very helpful.

Regards,
Leigh