.NET

.NET

Reply
Member
3 Posts
0 Kudos
Registered: ‎06-01-2011
Post 1 of 5

InvalidProgramException - Common Language Runtime detected an invalid program.

764 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
607 Posts
37 Kudos
Registered: ‎03-18-2008
Post 2 of 5

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
3 Posts
0 Kudos
Registered: ‎06-01-2011
Post 3 of 5

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
1 Posts
0 Kudos
Registered: ‎10-29-2013
Post 4 of 5

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
762 Posts
100 Kudos
Registered: ‎03-21-2011
Post 5 of 5

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!