CLR detected invalid Program

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am creating(new to auto CAD) a .net application for Auto CAD (.net 2017 Framework 4.7, Auto CAD 2017). I have downloaded "Autodesk_ObjectARX_2019_Win_64_and_32_Bit" and i am using in the application. I have imported the following dll's "using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.DatabaseServices; using Autodesk.AutoCAD.Runtime;"). I get the error "System.InvalidProgramException: CLR detected an Invalid Exception". I am trying to run the example project "http://adndevblog.typepad.com/autocad/2012/05/insert-block-from-a-different-dwg-using-net-.html".
I am basically trying to copy files from different .dwg to new .dwg where we can list all the block in the drop down from existing and on selection i can add into the new one.