Trust an Assembly


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,
 
Ad

Advertisements

C

Carlos J. Quintero [.NET MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top