locked
Error System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. RRS feed

  • Question

  • Hi 

    Anyone has any idea on how to solve this problem 

    Error System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    Application : ASP

    Hosting: GoDaddy

    DotNet=4.0

    Thursday, August 1, 2013 3:51 AM

Answers

  • Hello,

    Welcome to MSDN forum.

    According to your description, I know that encounter some issue about System.Security.SecurityException, this issue is setting TrustLevevl to full for the application.

    Add a line code to the web.config under system.web:<trust level=”Full”/>

    In addition, you can refer this document about  Security Exception coming in a running asp.net website.

    In fact , this thread is specific to ASP.NET, ASP.NET forum is more suitable for it, if you have some issue about ASP.NET  later, you can post directly in ASP.NET forum.

    ASP.NET forum: http://forums.asp.net/

    Hope these help, have a nice day.

    Best Regards,


    Lilia Gong
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, August 1, 2013 2:44 PM