Last post Jan 09, 2015 07:48 PM by yousaid
Jan 09, 2015 12:35 PM|yousaid|LINK
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
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed..
The webhost insists the Trust Level is fine.
Jan 09, 2015 02:12 PM|Mikesdotnetting|LINK
Jan 09, 2015 07:48 PM|yousaid|LINK
You were heading in the right direction. The issue was the Trust .
I simply added
<trust level="Full" /> in my webconfig and issue resolved.