locked
Security Exception Error: The application attempted to perform an operation not allowed by the security policy RRS feed

  • Question

  • User-1974948304 posted

    I have a WebMatrix application that works locally, but after uploading it to the web host, I am getting the following 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.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed..

    The  webhost insists the  Trust Level is fine.

    Any ideas?

    Friday, January 9, 2015 12:35 PM

Answers

  • User-821857111 posted
    What trust level do they provide?
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 9, 2015 2:12 PM
  • User-1974948304 posted

    You were heading in the right direction. The issue was the Trust .

    I simply added 

    <trust level="Full" /> in my webconfig and issue resolved.

    Thanks Mike

    cheers,

    yousaid

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 9, 2015 7:48 PM

All replies

  • User-821857111 posted
    What trust level do they provide?
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 9, 2015 2:12 PM
  • User-1974948304 posted

    You were heading in the right direction. The issue was the Trust .

    I simply added 

    <trust level="Full" /> in my webconfig and issue resolved.

    Thanks Mike

    cheers,

    yousaid

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 9, 2015 7:48 PM