I'm getting this error on a site hosted by GoDaddy. I have added the
following to my AssemblyInfo.cs in my class library: [assembly:
AllowPartiallyTrustedCallers()], recompiled my library and uploaded the
.dll to my site. The error still occurs on pages that try to use this
assembly. I have also tried setting the trust level in the web.config
but I get an override not allowed error. Please advise.
The full error is:
Server Error in '/' Application.
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.
...
Go to the complete details ...