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

Free Support Forum - aspose.com

PptxReadException on the attached file

Hi Aspose team,

We encountered the following problem:


When we try to process the attached pptx, Aspose fails with the following exception:

Aspose.Slides.PptxReadException was unhandled
HResult=-2146233088
Message=Unable to cast object of type 'Aspose.Slides. ’ to type 'Aspose.Slides. '.
Source=Aspose.Slides
StackTrace:
at Aspose.Slides. . (Presentation , Stream )
at Aspose.Slides.Presentation. (Stream )
at Aspose.Slides.Presentation. (Stream )
at Aspose.Slides.Presentation. (String )
at Aspose.Slides.Presentation…ctor(String file)
at AsposeSlidesTest.Program.Main(String[] args) in C:\Users\dlengyel\Documents\Visual Studio 2015\Projects\AsposeSlidesTest\AsposeSlidesTest\Program.cs:line 16
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
HResult=-2147467262
Message=Unable to cast object of type 'Aspose.Slides. ’ to type 'Aspose.Slides. '.
Source=Aspose.Slides
StackTrace:
at Aspose.Slides. .tgrt4fn76tvpnbz2ubpxj6qw2e99ay7p (String[] )
at Aspose.Slides. . (IPresentation )
at Aspose.Slides. . (IPresentation )
at Aspose.Slides. . (Presentation , Stream )
InnerException:


We use the following simple code:

Aspose.Slides.Presentation asposeDocument = new Aspose.Slides.Presentation(filePath);

Please let us know if we can provide any more details to help you investigate the issue.

Best regards,
Daniel Lengyel
0030174

Hi Daniel Lengyel,

Thanks for inquiring Aspose.Slides.

I have worked with the presentation file shared by you and have been able to observe the issue specified. An issue with ID SLIDESNET-38908 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be fixed.

We are sorry for your inconvenience,