Recently, i programmed a project for PDF editing. All tests are successful on my development server. However, it failed to run fluently on my production sever. It seems that it ran into security issues. It shows me an error that is "That assembly does not allow partially trusted callers"... The security level of the server host is in "Medium Trust" level. How can i solve the problem???
This product of XsPDF is what you might be interested in, check out: PDF Basic Library for .NET.
Answers
I am having the same problem and i correct it by adding that path to a config file. For example, i added this line, [assembly: AllowPartiallyTrustedCallers], to the AssemblyInfo.cs file in the project. This Might work for your case...but not sure...
Is your project an aspx application? If so, you may get this through by setting appropriate in Application Pool. You may use "Local System" as Identity for the new AppPool to try this.And then, you can create a new account tailored rights for your application pool. If not, you should find a way to set the account of your application uses. Directly change the account to allow this work.
Based on Google search, i found out that some of the .NET objects cannot be used on a medium trust host! It may require the library dll have full trust by design. Certainly, you may prevent a lot of problems if you put the assembly to the GAC.