I'm trying to generate a PDF in memory to send it to a WS. This PDF should be created in memory (Stream) and in the Microsoft CRM "cloud" in a plugin code. Is this possible?
In the plugin (already coded and deployed) I have this lines, the 3th fails
PdfDocument pdf = new PdfDocument();
PdfPage pdfPage = pdf.AddPage();
XGraphics graphics = XGraphics.FromPdfPage(pdfPage); //<-- ERROR
is this line of code trying to access a resource in the cloud that is not permitted/available?
this is the error:
Unexpected exception from plug-in (Execute): Plugins8.Plugin: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
any ideas?