By which command we can turn-off and turn-on CAS

By which command we can turn-off and turn-on CAS?

E

Expert

Verified

Code Access Security Tool (Caspol.exe) can be used to turn security on and off. To use Caspol.exe, we first need to set the <LegacyCasPolicy> element to true.

To turn on security, we can type the command at the command prompt which is as follows:

caspol -security on

To turn off security, we can type the command at the command prompt which is as follows:

caspol -security off

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.