slightlyoff
asked on
VB.NET System.InvalidOperationException
When I start my program, I get errors in the Immediate Window. The program runs fine, but I would like to figure out what's going on.
This is what shows up:
A first chance exception of type 'System.InvalidOperationEx ception' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationEx ception' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationEx ception' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationEx ception' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationEx ception' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationEx ception' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationEx ception' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationEx ception' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationEx ception' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationEx ception' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationEx ception' occurred in System.Data.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Data.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Data.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Data.dll
The interesting thing, is that I don't do any database calls or connections until after a button is pressed... and these errors pop up when the form loads.
Any ideas on things i should look for? I know this may be vague, i'm just getting started with the troubleshooting.
Thanks!
This is what shows up:
A first chance exception of type 'System.InvalidOperationEx
A first chance exception of type 'System.InvalidOperationEx
A first chance exception of type 'System.InvalidOperationEx
A first chance exception of type 'System.InvalidOperationEx
A first chance exception of type 'System.InvalidOperationEx
A first chance exception of type 'System.InvalidOperationEx
A first chance exception of type 'System.InvalidOperationEx
A first chance exception of type 'System.InvalidOperationEx
A first chance exception of type 'System.InvalidOperationEx
A first chance exception of type 'System.InvalidOperationEx
A first chance exception of type 'System.InvalidOperationEx
A first chance exception of type 'System.ArgumentException'
A first chance exception of type 'System.ArgumentException'
A first chance exception of type 'System.ArgumentException'
The interesting thing, is that I don't do any database calls or connections until after a button is pressed... and these errors pop up when the form loads.
Any ideas on things i should look for? I know this may be vague, i'm just getting started with the troubleshooting.
Thanks!
On a DataForm if you stablish the connection on Form Load, note that connection declared at component level can have an invalid ConnectionString then it fails on New method.
need to see some of your code to troubleshoot.
These messages are popped up when exceptions are handled by user code. Some exceptions might be thrown in your code. Some might be thrown in the class libraries and handled. So even though you are not using db at the load, the DLL may still be throwing and handling exceptions. Nothing to worry about though.
Hi there;
Could you post your code so we can check for the exception?
Best regards.
Could you post your code so we can check for the exception?
Best regards.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Debug - > Exceptionns -> check all checkBox.
Some times also, when you change debug options, debug Window can Show exceptions from Il compiler for recursive calls, Class A, contains member of Class B and B contains members of class A.
Verify your changed options on Tools->Options->Debug.