System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Drawing.Graphics.FromHwnd(IntPtr hwnd) at PdfSharp.Drawing.XGraphics..ctor(Graphics gfx, XSize size, XGraphicsUnit pageUnit, XPageDirection pageDirection) at PdfSharp.Drawing.XGraphics.CreateMeasureContext(XSize size, XGraphicsUnit pageUnit, XPageDirection pageDirection) at MigraDoc.Rendering.DocumentRenderer.PrepareDocument() at MigraDoc.Rendering.PdfDocumentRenderer.PrepareDocumentRenderer(Boolean prepareCompletely) at MigraDoc.Rendering.PdfDocumentRenderer.PrepareRenderPages() at MigraDoc.Rendering.PdfDocumentRenderer.RenderDocument() at NopSolutions.NopCommerce.BusinessLogic.Utils.PDFHelper.PrintOrderToPDF(Order order, Int32 LanguageID, String FilePath) in F:\Own\NopCommerce\EnterpriseEdition\1.5Release\Libraries\Nop.BusinessLogic\Utils\PDFHelper.cs:line 470 at NopSolutions.NopCommerce.Web.Administration.Modules.OrderDetailsControl.btnGetInvoicePDF_Click(Object sender, EventArgs e) in F:\Own\NopCommerce\EnterpriseEdition\1.5Release\NopCommerceStore\Administration\Modules\OrderDetails.ascx.cs:line 603 The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.SecurityPermission The Zone of the assembly that failed was: MyComputer
It does this when I try to print the invoice or PDF.
Permissions for all files and folders have been set to full Read/write