Author Topic: Load an assemly from a network share  (Read 3627 times)

0 Members and 1 Guest are viewing this topic.

Joel Roderick

  • Guest
Load an assemly from a network share
« on: March 24, 2006, 05:25:34 PM »
I finally finished my first .net app and now I am having trouble loading it.  All of our customization is located on a network drive and then AutoCAD is mapped to it.  I know there are security issues with .net assemblies and network shares.

So... does anyone know how to run a .net dll from a network share?  I really don't want to copy all of our customization to the user's hard drives.

Any help is much appreciated!

TR

  • Guest
Re: Load an assemly from a network share
« Reply #1 on: March 24, 2006, 05:33:25 PM »
You can't run managed code from a machine other than your own without adjusting your .NET framework configuration. You can adjust your security settings by going to: Control Panel > Administrative Tools > Microsoft .NET Framework 1.1 Configuration

Hope that helps.

Joel Roderick

  • Guest
Re: Load an assemly from a network share
« Reply #2 on: March 28, 2006, 04:29:42 PM »
Tim,
Did some more research into this and found that there is a command line version of the .Net Framework Configuration wizard called caspol.exe.  You can easily script this to add a trust to the network share.

Look here for all the info you ever wanted...
http://www.google.com/search?hl=en&q=caspol

If you are interested in adding a policy via code, you can look here:
http://blogs.officezealot.com/hessinger/archive/2004/12/14/3618.aspx