When running my program Visual Studio gives me a load of exceptions:
the program runs fine, but it's a project for school so I have to solve these exceptions
I have option strict and option explicit both on, so I'm surprised I can run the program without any problem
is there an easy way to find the cause of such an exception? something to find the linenumber of the exception or something?
I'm using VS2008
VB.NET:
A first chance exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
A first chance exception of type 'System.Exception' occurred in AutomaatVerhuur.exe
A first chance exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
A first chance exception of type 'System.Exception' occurred in AutomaatVerhuur.exe
A first chance exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
A first chance exception of type 'System.Exception' occurred in AutomaatVerhuur.exe
A first chance exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
A first chance exception of type 'System.Exception' occurred in AutomaatVerhuur.exe
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.NullReferenceException' occurred in AutomaatVerhuur.exe
the program runs fine, but it's a project for school so I have to solve these exceptions
I have option strict and option explicit both on, so I'm surprised I can run the program without any problem
is there an easy way to find the cause of such an exception? something to find the linenumber of the exception or something?
I'm using VS2008