AutoCAD® .NET Load From Remote Sources

There are various security features included in the .NET framework, and one of which prevents the loading of dll files from networked locations such as the Internet.

Whilst this is a very sensible idea, it can prevent us from achieving functionality that we want. For example, you may want to store your dll files in some networked location so that it is accessible by other members of your team. It is usually far more convenient to keep one central networked copy of a dll file than to have to duplicate it on all the machines that use it.

So, it would be handy if there was a way to override this security restriction, and of course, there is.

In your AutoCAD® directory (mine is C:\Program Files\Autodesk\AutoCAD® Civil 3D® 2012) there is a file called Acad.exe.Config – this is an xml document which sets out many configuration settings. Open this with any text editor (by the way, have you tried Notepad++ ?), and right before the final closing </configuration> tag, insert the following:


<runtime>

<loadFromRemoteSources enabled="true" />

</runtime>

Now once you restart AutoCAD®, you should be able to NETLOAD dll files from networked locations, and the management of your .NET programs is now that little bit easier.

Aren’t you glad you came to HowToAutoCAD.com :D.

Will

P.S. If you want to benefit from my bountiful wisdom indefinitely (heh), I’d recommend subscribing below.