An exception is being thrown every time I try to load one PPTX file. I seems to only happen with one document only. I have tested it with other documents and they all worked fine.
Aspose.Slides for .NET Version: 19.12.0
ProblemDocumentPPTX.PNG (102.9 KB)
Code:
try
{
// Set licenses
SetLicense.License(GlobalConfig.Document.Type.Slide);
using (Presentation pptx = new Presentation(filePath))
{
// It won't enter this code block
...
...
}
catch (Exception exceptionObject)
{
// Exception is thrown here
Exception message:
"Object reference not set to an instance of an object."
.....................................................................................................................
Stack trace:
"at Aspose.Slides.\u0002 .\u0002(Presentation \u0002, Stream \u0003, InterruptionToken
\u0005)\r\n at Aspose.Slides.Presentation.\u0003(Stream \u0002, Boolean \u0003)\r\n at
Aspose.Slides.Presentation.\u0002(Stream \u0002, Boolean \u0003)\r\n at
Aspose.Slides.Presentation.\u0002(String \u0002, Boolean \u0003)\r\n at
Aspose.Slides.Presentation..ctor(String file)\r\n at
TCS.TCR.DocumentService.Util.PPTXConverter.getHtmlPPT(String filePath, String uniqueID,
String fileName) in C:\\path\\to\\solution\\Class\\PPTXConverter.cs:line 36"
}