Referencing dll files - my AutoCAD plugin only works on my computer


I have created an AutoCAD plugin, but encounter problems when using the plugin on certain machines. It works fine on my machine.

One thing that I have noticed is that if I change the output path of the build to a different directory I get problems stating that certain namespaces cannot be found.

The following shows the build output folder with the dll files in, the build is successful.

However, if i build to an empty folder (even with dll files referenced) i get the following errors and warnings...

This plugin needs to be able to be used by other users, i think im not referencing dll files properly or something as the program only runs successfully on my computer (and all computers that i have opened the solution in visual studio and built to the export folder). Copying all the files shown in the folder above to the same path on another users computer doesn't work, other users get an error stating 'Could not load fil or assembly "c:/info3d/info3dreloaded.dll" or one of its dependencies. Operation not supported. Exception from HRESULT: 0x80131515)'

Thanks in advance for any help!


asked on Stack Overflow Nov 12, 2014 by Chris

2 Answers


For AutoCAD DLLs set the Copy Local to false. AutoCAD provides those via its runtime.

"Once a AutoCAD .NET API DLL is referenced, you must set the Copy Local property of the referenced DLL to False." from

answered on Stack Overflow Nov 17, 2014 by CAD bloke

Right click on the reference and click on properties and set the "copy local" property to true

enter image description here

answered on Stack Overflow Nov 12, 2014 by Aydin

User contributions licensed under CC BY-SA 3.0