Bain
May 1st, 2007, 11:37 AM
I have an application which has a "global" exception handler that runs at the very begining of the application (see code below). Everything runs fine in the IDE, however, when I install the application on computers the "global" exception never fires. I am using the VS.NET 2005 Setup Project to create the setup files which are installed on pc's. It would seem that there is some problem with the deployment version of the application, but I dont know for sure.
Any idea's how to fix the problem?
Try
Application.Run(LogInForm)
Catch eData As DataException
MessageBox.Show(eData.Message, "ADO.NET Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Catch eSql As SqlException
MessageBox.Show(eSql.Message, "SQL Server Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Catch eSystem As Exception
MessageBox.Show(eSystem.Message, "General System Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
Any idea's how to fix the problem?
Try
Application.Run(LogInForm)
Catch eData As DataException
MessageBox.Show(eData.Message, "ADO.NET Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Catch eSql As SqlException
MessageBox.Show(eSql.Message, "SQL Server Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Catch eSystem As Exception
MessageBox.Show(eSystem.Message, "General System Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try