Question
How to set CAS trust level in Plesk?
Answer
Server-wide
- Log into Plesk.
- Go to Tools & Settings > ASP.NET Settings > Code Access Security.
- From the drop-down menu CAS trust level select the required level.
- Press the OK button to apply the changes.
For particular domain
- Log into Plesk.
- Go to Domains > example.com > ASP.NET Settings > Code access security.
- From the drop-down menu CAS trust level select the required level.
- Press the OK button to apply the changes.
Solution using the RDP access
- Log into the server via RDP.
- Open a command prompt as Administrator.
- Execute the command below to set CAS trust level:
- Server-wide
C:> “%plesk_bin%”aspnetcfg.exe –machine –trust-level=Medium
- For particular domain
C:>”%plesk_bin%”aspnetcfg.exe –domain-name=example.com –user=johndoe –trust-level=Minimal
Note: the trust level can be Full, High, Medium, Low and Minimal.
- Server-wide