'System.Windows.Forms.AxHost+InvalidActiveXStateException' in WPF
- by Gagan
I am trying to make a WPF Application and using the Visio Controls. I have a dll named AxInterop.Microsoft.Office.Interop.VisOcx and I refer it to instantiate an object of the type AxDrawingControl().
Now as soon as I write this code:
AxDrawingControl objDrawControl=new AxDrawingControl();
and check the attributes of this object objDrawControl in the debug mode, I see this message: Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown.
Here is how it looks like:
Please help me to get this thing resolved! Please!