I am trying to use PDFSharp to create pdf files on my site. I keep getting the error: 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. I already knew this was a issue with my previous provider and moved to Winhost to take advantage of full trust. I added the appropriate lines to my web.config: <system.web> <securityPolicy> <trustLevel name="Full" policyFile="internal"/> </securityPolicy> The kb doesn't include policyFile, but it kept erroring and telling me I needed it. Any suggestions??
Try looking at this kb article for setting up your application trust level. http://support.Winhost.com/KB/a657/changing-the-default-aspnet-trust-level.aspx
I read the kb first, I added it the way they had it and it kept giving me a compilation error because it didn't contain the policy file. I added the policyfile as internal and it got rid of the that error, but didn't fix my original security error.
I got it fixed...found in another post to go into IIS manager, set to low and then set to full...works!