PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.de/

System.Security.SecurityException: via XGraphics.FromPdfPage
http://forum.pdfsharp.de/viewtopic.php?f=2&t=1535
Page 1 of 1

Author:  FreeRollen [ Tue Feb 08, 2011 7:23 pm ]
Post subject:  System.Security.SecurityException: via XGraphics.FromPdfPage

I am using PDFSharp in a WebForm and it works generates the PDF without any problem when I run the webform from the debugger within vs2008 from my local machine. However, I publishing the webform on godaddy.com, i get an exception error when i try to create a pdf.

System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

The exception seems to be generated by XGraphics gfx = XGraphics.FromPdfPage(page); Is there a fix or solutions to this bug?

I have read other post about this error but, i have not seen a solutions and most of those post are from 2006,7, & 8.

Author:  Thomas Hoevel [ Wed Feb 09, 2011 8:40 am ]
Post subject:  Re: System.Security.SecurityException: via XGraphics.FromPdfPage

PDFsharp cannot (yet) run with medium trust, it currently requires full trust.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/