Infralin's (not so) Frequently Asked Questions on .NET
© Gijsbert van der Linden ()
Infralin Consultancy (http://www.infralin.com)
Last updated: 13-7-2004
Ad hoc, for a specific
executable:
- Do the following, depending on your operating system:
- On Windows XP, click Start, and then
click Control Panel.
- On Windows 2000, click Start, point to
Settings, and then click
Control Panel.
- Do the following, depending on the version of the .NET Framework that you
are using:
- If you are using the .NET Framework 1.1, double-click
Administrative Tools, and then double-click
Microsoft .NET Framework 1.1 Wizards.
- If you are using the .NET Framework 1.0, double-click
Administrative Tools, and then double-click
Microsoft .NET Framework Wizards.
The .NET Wizards window appears.
- In the .NET Wizards window, click
Trust an Assembly. The
Trust an Assembly dialog box appears.
- Click to select the Make changes to this computer
option, and then click Next.
- Click Browse. The
Choose Assembly dialog box appears.
- In the Choose Assembly dialog box, locate
the executable file on the mapped network drive, and then click
Open.
- In the Trust an Assembly dialog box, click
Next.
- In the Trust an Assembly dialog box, move
the slider to Full Trust, and then click
Next.
- Click Finish.
For
a whole map or drive:
- Run from a command prompt:
%SystemRoot%\Microsoft.NET\Framework\v1.0.3705\CasPol.exe -machine -addgroup
All_Code -url file://<drive>:/<map>/*
FullTrust -n <MyCasPolName>
- To delete the same policy again:
%SystemRoot%\Microsoft.NET\Framework\v1.0.3705\CasPol.exe -remgroup <MyCasPolName>
(the version in the path of the executable might change with the version of .NET you are using).