We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exception while exporting Pptx to PDF - Aspose.Slides for .Net 5.4.0.0

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.
Hi,
We are intended to purchase Aspose.Slides 5.4.0.0 for .Net ( framework version 4.0). But while analyzing the evaluation version, 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. Is there a resolution/fix for this issue?

Please respond to this

Hi Prakash,

I have worked with the presentation file shared by you and have been able to observe the issue while exporting presentations to PDF using Aspose.Slides for .NET 5.4.0 for .NET 4.0 dll version. An issue with ID 30320 has already been created in our issue tracking system to further investigate and resolve the issue. I have verified .NET 2.0 version dll of Aspose.Slides for .NET and it works fine. We will share the further information with you once it is shared by our development team.

We are sorry for your inconvenience,

I have tried aspose.slides 5.4.0.0 for .net version 2.0 also.

that also gave the same exception

Hi Prakash,

I have created a sample project for you that uses Aspsoe.Slides for .NET 5.4.0 for .NET 2.0 dll. For your kind reference, the generated PDF files are also attached. Please share if you still find any issue while exporting to PDF.

I have observed the improper text rendered for slide 4 of sample.pptx and an issue with ID 30444 has been created in our issue tracking system for it. A separate issue with ID 30445 has been created in our issue tracking system to resolve the missing chart issue for slide 6 in exported PDF

Thanks and Regards,

Hi Medassir,

That worked fine. There were some formatting issues. also charts were not rendered in the generated pdf…still this is cool…


please check the same one for .net version 4.0

The issues you have found earlier (filed as 30320) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(1)

i have tried aspose.slides 5.4.0.0 for .net 4.0. the earlier exception is not coming, but

there are some issues with this version.
1. the themes are not rendered. background will always be white.
2. Charts are not getting rendered in the exported pdf
please try to give a fix for Chart rendering in Pdf.

Hi Prakash,

I like to share that the issues related to missing charts and improper text rendering have been recently added and are still unresolved. The issue of themes failing to get render in exported PDF has been identified in .NET 4.0 version dll of Aspose.Slides for .NET 5.5.0. An issue with ID 30520 has been created in our issue tracking system to further investigate and resolve this issue. However, by using .NET 2.0 version dll of Aspose.Slides for .NET 5.5.0, the missing theme issue is not present. You may persist with the .NET 2.0 version dll for the time until the issues are scheduled and resolved.

We are sorry for your inconvenience,

I am not sure if export to PDF option is using third party tools (the option you get when you install primoPDF etc), but if you open the created search book in PDF and save as PDF, the charts are exported exactly as they appear in PPTX.

please try to give a fix asap. its already 1 week delay for us.

Hi Prakash,

I regret to share that I have verified from our issue tracking and have found issue unresolved. Although, it has been assigned to respective developer yet it has not been scheduled as our development team is already engaged in resolving pending Priority/Enterprise Supoort issues. As soon as some information is shared by our development team, I will be more than happy to share that with you.

Thanks and Regards,

Hi Prakash,


I like to share that the issue specified have been resolved in Aspose.Slides for .NET 5.7.0. Only chart rendering issue on slide of “Sample.pptx” remains. This issue has also been resolved but fix will be available in Aspose.Slides for .NET, which is due next month. We will notify you as soon as the fix will be available online. For your kind reference, the generated PDF is also attached.

Many Thanks,

The issues you have found earlier (filed as 30445) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.