When a DLL file is deleted, the app crashes before the Main method. In Windows Event Viewer, it shows "...System.IO.FileNotFoundException ".
How can I handle this exception in the application?
My present code:
static void Main(string[] args)
{
if (!File.Exists("PCSQL.dll"))
{
AppendLaunchErrorLog("*PCSQL.dll file doesn't exist*");
Environment.Exit(0);
}
...