Hi
I am getting this exception:
A first chance exception of type ‘System.IO.FileLoadException’ occurred in Aspose.Pdf.dll
Additional information: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)
After running this code:
using (Document pdfDocument = new Document(stream, true))
{
PdfContentEditor contentEditor = new PdfContentEditor();
contentEditor.BindPdf(pdfDocument);
contentEditor.BindPdf(pdfDocument);
contentEditor.DeleteStampById(stampId);
pdfDocument.Save(stream);
}
Any ideas?