Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Change Code Access Security Level on Plesk

Change Code Access Security Level on Plesk

Scheduled Pinned Locked Moved ASP.NET
csharpvisual-studioasp-netsecurity
3 Posts 2 Posters 25 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jean Vallee
    wrote on last edited by
    #1

    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:

    Richard DeemingR J 2 Replies Last reply
    0
    • J Jean Vallee

      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:

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      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

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      • J Jean Vallee

        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:

        J Offline
        J Offline
        Jean Vallee
        wrote on last edited by
        #3

        Thank you for your reply. I forwarded it to my host tech support.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups