Trust an Assembly

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a C# .exe that is going to be run from a network drive. I
copied the .exe along with the required .DLLs to a directory on the network
drive. I installed an icon on the user's desktop pointing to the .exe. When
the user tries to run the app, they get an error. If I run the .Net Framework
1.1 wizard and click on 'trust an assembly' and drill down to the .exe on the
network drive, everything is okay.

How can I code this .exe or deployment package so that the assembly is
trusted without having to go to each user's machine and run the .Net
Framework wizard to trust the assembly?

Thanks,
 
Your network administrator must create and run an script using the
command-line caspol.exe utility of the .NET Framework to adjust the security
for that assembly or folder. See the docs about that utility.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
 
Back
Top