How to rectify InvalidActiveXStateException in WPF?

Posted by Gagan on Stack Overflow See other posts from Stack Overflow or by Gagan
Published on 2010-03-18T05:48:44Z Indexed on 2010/03/19 5:11 UTC
Read the original article Hit count: 316

Filed under:
|

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: alt text

Please help me to get this thing resolved! Please!

I just realized the image isn't visible. So here is the link of the image showing the error message: http://www.freeimagehosting.net/uploads/fed103f4d3.jpg

© Stack Overflow or respective owner

Related posts about wpf

Related posts about exception