.NET

Reply
Member
tarikpeterson
Posts: 3
Registered: ‎06-01-2011
Message 1 of 5 (640 Views)

InvalidProgramException - Common Language Runtime detected an invalid program.

640 Views, 4 Replies
06-01-2011 07:13 AM

Currently I've got code that is failing when I try to run StartTransaction() using the TransactionManager. I keep getting a InvalidProgramException.

 

Is this due to me not actually having AutoCAD installed on my development box?  I do have references to AcDbMgd and AcMgd loaded in my project if that makes a difference.

Distinguished Mentor
michael.robertson
Posts: 592
Registered: ‎03-18-2008
Message 2 of 5 (638 Views)

Re: InvalidProgramException - Common Language Runtime detected an invalid progra

06-01-2011 07:38 AM in reply to: tarikpeterson

Yes, you need either a AutoCAD based product or RealDWG for your program to work.

 

Just and FYI since I don't know what you are tyring to achieve but if you are trying to use those dll files without one of the above products you are looking a legal licensing issues also.

Mike Robertson
FL. Dept. of Transportation
CADD Applications Developer
Member
tarikpeterson
Posts: 3
Registered: ‎06-01-2011
Message 3 of 5 (635 Views)

Re: InvalidProgramException - Common Language Runtime detected an invalid progra

06-01-2011 07:44 AM in reply to: michael.robertson

Mike,

 

Thanks for your speedy response. I downloaded ObjectArx and thought that was all I needed. I'm a software developer and was hoping to not have to install the full AutoCAD package just to do my development. Is there any way other way to accomplish that? If not I guess I'll suck it up and install it.

 

Thanks,

Tarik

New Member
surfer989
Posts: 1
Registered: ‎10-29-2013
Message 4 of 5 (269 Views)

Re: InvalidProgramException - Common Language Runtime detected an invalid progra

10-29-2013 04:55 PM in reply to: tarikpeterson

I'm also receiving this error, I installed RealDWG in my development machine.  Do I still need to have AutoCAD installed?

ADN Support Specialist
Balaji_Ram
Posts: 699
Registered: ‎03-21-2011
Message 5 of 5 (228 Views)

Re: InvalidProgramException - Common Language Runtime detected an invalid progra

11-08-2013 04:37 AM in reply to: surfer989

With RealDwg, your application can read and save DWG files. It does not include the editor functionality to display the drawing as AutoCAD does. Also, you do not need to have AutoCAD installed in the same machine.

 

Can you provide more details about your application setup and the assembly references that you are using in it ?

Can you provide me a minimal sample project that gives the error ? 



Balaji
Developer Technical Services
Autodesk Developer Network

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.