Security Exception Error printing to PDF in .NET

If you are trying to Print to PDF for .NET using a 3rd party software (such as iTextSharp) and you are receiving the following error, you will need to have your site moved to a Full Trust server.
-----------------------------------------------------------
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.
-----------------------------------------------------------

For more information see Article #913 Subject: ASP,NET 2.0 Code Access Security - Full Trust vs. Medium Trust.

Add Feedback