Hi, We are intended to purchase Aspose.Slides 5.4.0.0 for .Net ( framework version 4.0). This suits most of our requirements in the project and are planning to purchase 2-4 developer licenses. But while analyzing the tool, we came across an issue while exporting PPTX to PDF. We have attached the sample code and the issue that occurred.
Sample Code:public void ExportToPDF(string presentationFile, string pdfFile){ PresentationEx pres = new PresentationEx(presentationFile); pres.Save(pdfFile, SaveFormat.Pdf);}
Exception that we get:Inheritance security rules violated while overriding member: ' . .GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.TypeLoadException: Inheritance security rules violated while overriding member: ' . .GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.
Source Error:
Line 22:
Line 23: // Exception : Inheritance security rules violated while overriding member
Line 24: pres.Save(pdfFile, SaveFormat.Pdf);
Line 25: }
Line 26:
We have visited aspose community forums and we have tried all the solutions given there. None of them worked for us. Regarding this we have contacted one your technical person(Mudassir Fayyaz Khan), even the solution given by him didn't work. We require this feature of exporting pptx to pdf. Since we are planning to purchase, Is there a resolution/fix for this issue?
Please respond to this as early as possible.
This message was posted using Email2Forum by Mudassir.