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:

  1. 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.
  2. 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.

  3. In the .NET Wizards window, click Trust an Assembly. The Trust an Assembly dialog box appears.
  4. Click to select the Make changes to this computer option, and then click Next.
  5. Click Browse. The Choose Assembly dialog box appears.
  6. In the Choose Assembly dialog box, locate the executable file on the mapped network drive, and then click Open.
  7. In the Trust an Assembly dialog box, click Next.
  8. In the Trust an Assembly dialog box, move the slider to Full Trust, and then click Next.
  9. Click Finish.

 

  For a whole map or drive:

  1. 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>
     
  2. 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).