Change Code Access Security Level on Plesk
-
I built a simple 1 page site with Visual Studio 2022 using asp.net. It has a few buttons that display some images and 2 links to a subdomain. No additional modules were used... just published with straight VS. The host I am using has the CAS trust level default as FULL and it works successfully if I leave it that way. Now I want to change hosts and the new host does not support a FULL CAS Trust Level, only HIGH. This is my web.config:
-
I built a simple 1 page site with Visual Studio 2022 using asp.net. It has a few buttons that display some images and 2 links to a subdomain. No additional modules were used... just published with straight VS. The host I am using has the CAS trust level default as FULL and it works successfully if I leave it that way. Now I want to change hosts and the new host does not support a FULL CAS Trust Level, only HIGH. This is my web.config:
ASP.NET MVC 5 does not support running in anything other than full trust. Microsoft have provided guidance for hosters to move away from using CAS trust levels and use proper OS-level isolation instead: ASP.NET Partial Trust does not guarantee application isolation - Microsoft Support[^] For .NET Core / .NET 5+ applications, CAS has been completely removed. If your host doesn't understand that, or won't adopt the recommendations, then all you can do is take your business elsewhere.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
I built a simple 1 page site with Visual Studio 2022 using asp.net. It has a few buttons that display some images and 2 links to a subdomain. No additional modules were used... just published with straight VS. The host I am using has the CAS trust level default as FULL and it works successfully if I leave it that way. Now I want to change hosts and the new host does not support a FULL CAS Trust Level, only HIGH. This is my web.config:
Thank you for your reply. I forwarded it to my host tech support.