Link to home
Start Free TrialLog in
Avatar of pillmill
pillmill

asked on

Exception.InnerException ?

I am getting a runtime exception in a VB6 conversion.
The application calls custom OCX controls from a VB.NET project.

The error message is : System.InvalidOperationException was unhandled

It occurs at the following line:
Me.MainForm = Global.App.Main

How do I debug this further ?
ASKER CERTIFIED SOLUTION
Avatar of Sancler
Sancler

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 pillmill
pillmill

ASKER

Thanks.

The first error reported is:
"A first chance exception of type 'System.InvalidCastException' occurred in AxInterop.Application1.dll"

How do I determine the line in Application1 at which this exception was thrown ?
Unless you can detect it from the stack trace - which should follow the line you've quoted from the error message - I don't know.

Sorry

Roger