How to build Enterprise Library DLLs with Medium Trustlevel

Topics: Enterprise Library Core, General discussion, Policy Injection Application Block, Security Application Block
Jul 22, 2009 at 10:43 AM

Hi All,

We are developing a web application which needs to be deployed in a shared hosting server. Currently we are trying to deploy it into our demo path, which is also a shared server. Following is the error we are getting while running the application, which is related to trust level of the assembly files. That would be of a great help, if anyone can give us a solution.

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.

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

IT Consultant.

Jul 23, 2009 at 3:06 AM

Check out the documentation for running Enterprise Library on a partial trust environment -  Make sure to read the Customizing the Medium Trust Policy and Limitations When Using Partial Trust sectiosn.


Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.