TheSwamp
Code Red => .NET => Topic started by: Joel Roderick 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!
-
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.
-
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