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. System.Security.SecurityException

System.Security.SecurityException

Scheduled Pinned Locked Moved ASP.NET
helpcsharpsysadminsecurity
3 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.
  • B Offline
    B Offline
    Bajrang Singh
    wrote on last edited by
    #1

    Hi all, I am using third party tool in my web site. Its running fine on my dev. PC. but when I upload it to server it says "System.Security.SecurityException: That assembly does not allow partially trusted callers." when I read about this error, many suggest to get it set trust level to high by admin because developer can not overwrite this. Is there any other solution of this problem. Thanks

    Bajrang Singh Using .net 2.0 (VS2005)

    L 1 Reply Last reply
    0
    • B Bajrang Singh

      Hi all, I am using third party tool in my web site. Its running fine on my dev. PC. but when I upload it to server it says "System.Security.SecurityException: That assembly does not allow partially trusted callers." when I read about this error, many suggest to get it set trust level to high by admin because developer can not overwrite this. Is there any other solution of this problem. Thanks

      Bajrang Singh Using .net 2.0 (VS2005)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Add following line in your project's AssemblyInfo file, either at top or bottom.

      [assembly: AllowPartiallyTrustedCallers]

      This will resolve your issue. HTH

      Jinal Desai - LIVE Experience is mother of sage....

      B 1 Reply Last reply
      0
      • L Lost User

        Add following line in your project's AssemblyInfo file, either at top or bottom.

        [assembly: AllowPartiallyTrustedCallers]

        This will resolve your issue. HTH

        Jinal Desai - LIVE Experience is mother of sage....

        B Offline
        B Offline
        Bajrang Singh
        wrote on last edited by
        #3

        Thanks Jindal for reply. I've got this solution from many site but I didn't find assemblyInfo file in my web site and I didn't get any option to add it ( I think it added automatically). I created website as ASP.NET AjaxEnabled Web Site and AssemblyInfo file was not there) Could you pls tell me what is the option to add AssemblyInfo file. Thanks

        Bajrang Singh Using .net 2.0 (VS2005)

        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