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. Security Exception

Security Exception

Scheduled Pinned Locked Moved ASP.NET
helpsysadminhostingsecurity
6 Posts 2 Posters 0 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.
  • R Offline
    R Offline
    reogeo2008
    wrote on last edited by
    #1

    Hi all, While i am browsing the website hosted in my hosteing server ,im getting the error" Security Exception ".when i googled most ofthe solutions say to keep the trustlevel in web.config to Full as follows lt;system.web>      <trust level="Full" originUrl=""/>   </system.web>But the prolem is my hosting server doesn't support it..That will allow onlu medium trust level so What will be the next solution..Can anyone help me.. Thatnks in advance

    V 1 Reply Last reply
    0
    • R reogeo2008

      Hi all, While i am browsing the website hosted in my hosteing server ,im getting the error" Security Exception ".when i googled most ofthe solutions say to keep the trustlevel in web.config to Full as follows lt;system.web>      <trust level="Full" originUrl=""/>   </system.web>But the prolem is my hosting server doesn't support it..That will allow onlu medium trust level so What will be the next solution..Can anyone help me.. Thatnks in advance

      V Offline
      V Offline
      Vimalsoft Pty Ltd
      wrote on last edited by
      #2

      How many Web configs you have in your Project ?

      Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

      R 1 Reply Last reply
      0
      • V Vimalsoft Pty Ltd

        How many Web configs you have in your Project ?

        Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

        R Offline
        R Offline
        reogeo2008
        wrote on last edited by
        #3

        only one web config file

        V 1 Reply Last reply
        0
        • R reogeo2008

          only one web config file

          V Offline
          V Offline
          Vimalsoft Pty Ltd
          wrote on last edited by
          #4

          can you please post the exact error that you are getting. Dont manipulate the Error

          Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

          R 1 Reply Last reply
          0
          • V Vimalsoft Pty Ltd

            can you please post the exact error that you are getting. Dont manipulate the Error

            Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

            R Offline
            R Offline
            reogeo2008
            wrote on last edited by
            #5

            Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

            V 1 Reply Last reply
            0
            • R reogeo2008

              Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

              V Offline
              V Offline
              Vimalsoft Pty Ltd
              wrote on last edited by
              #6

              Good. Now Please Read here Understanding .NET Code Access Security[^] That means the .NET user has no Permissions.

              Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

              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