Turn-on and off of CAS

How can CAS be turn-on and turn-off?

E

Expert

Verified

Code Access Security Tool (Caspol.exe) can be used to turn security on and off.

In order to turn off security, following command  can be typed at the command prompt:
caspol -security off

In order to turn on security, following command can be typed at the command prompt:
caspol -security on

In the .NET Framework 4.0, in order to use Caspol.exe, it is required to set the <LegacyCasPolicy> element to “true”.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.