Error netloading plugin from network location

By Balaji Ramamoorthy

Issue

Iam trying to netload a plugin from a network location. But it gives me an error indicating “Please enable the loadFromRemoteSources” switch. How do I resolve this ?

Solution

This message is due to a change related to administering CAS policy in the .Net Framework 4.0 as compared to .Net Framework 3.5.

More information on this is available in the following links :

http://blogs.msdn.com/b/shawnfa/archive/2009/06/08/more-implicit-uses-of-cas-policy-loadfromremotesources.aspx

http://msdn.microsoft.com/en-us/library/dd409252(VS.100).aspx

To fix this problem, you can modify the “acad.exe.config” by inserting the following line in it.

The “acad.exe.config” can be found in the AutoCAD installation folder.

<runtime>

    <loadFromRemoteSources enabled=”true”/>

</runtime>

The <loadFromRemoteSources> element lets you specify that the assemblies that run partially trusted in earlier versions of the .NET Framework should be run fully trusted in the .NET Framework 4.


Comments

2 responses to “Error netloading plugin from network location”

  1. I used it but didn’t work :(

  2. Need to restart autocad after changes

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading