Code Access Security Policy Change Can Break .NET Framework
Changing Code Access Security Policy is dangerous. It is strange hackers still don't take on it :)
caspol.exe -polchgprompt off or caspol.exe -pp off will change your Code Access Security Policy without confirmation prompt.
caspol.exe -f[orce] can force the change to the Code Access Security Policy so, that the caspol.exe itself will not be able to run and it will ruin your computer's .NET Framework Configuration and no program will be able to run failing to acquire security permission.
Note: if it happenned to you (as it had happen to me), neither .NET Framework reinstallation nor Visual Studio .NET repair would help. Tip: create deployment Code Access Security Policy MSI on another computer and run it on yours.
Monday, August 15, 2005 12:23 AM