Possible errors received when attempting to run ASP.NET 2.0 applications in Full Trust

Note: For an overview of the custom trust level utilized here, see Knowledge Base article 981, Security Exception Error - NET 2.0 Code Access Security.

After the implementation of ASP.NET 2.0, Microsoft informed us of some settings that we needed to make to any shared web server running ASP.NET 2.0. Below are a few of the most common errors that we have experienced that are unable to be resolved with the security configurations we have in place on our production web servers:

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

Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.

System.Security.SecurityException: That assembly does not allow partially trusted callers.

Description: The application attempted to perform an operation not allowed by the security policy

<location allowOverride="false"> from an inherited configuration file.

If you are experiencing the above errors or any other errors due to a portion of your site requiring a trust level of “Full”, you may contact our Support Department to have your site moved to a less secure server. Customers who are being transferred to the new servers will be operating in "Full Trust", and you will need to understand and appreciate the security concerns that are present by operating in a fairly low level of security.

Be advised that you should work with vendors of any third party components or change code in your application so that you can move to the more secure servers in our full production environment.

To see a list of full trust plans, please go here

Add Feedback