Error with Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager

Error with Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager

Anonymous
Not applicable
710 Views
1 Reply
Message 1 of 2

Error with Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager

Anonymous
Not applicable

hi!

 

I'm using ObjectARX. When compiling this line in VS 2010 Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager I get an exception of type System.InvalidProgramException, "Common language program found invalid."

 

Why is this? Any solution?

 

Thank you ...

0 Likes
711 Views
1 Reply
Reply (1)
Message 2 of 2

philippe.leefsma
Alumni
Alumni

Hi

 

Sorry, that's clearly not enough information to be able to make any suggestion, you should either post a bigger code sample or provide more context. This doesn't look like a familiar exception, did you check on the web what might be the reasons?

 

You mention you are using ObjectARX but that line of code is .Net API, so you should post a case on the .Net part of that forum. Also I assume you probably mean the exception is generated when you run the code, not when you compile it. Mentionning exactly which version of AutoCAD you are running can help as well.

 

Thanks

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes