Free Support Forum - aspose.com

Throw exception when creating a Aspose.Slides.Presentation object

exception.zip (3.8 MB)
when I create a Aspose.Slides.Presention object and input this file as parameters, throw an exception.

System.NullReferenceException:未将对象引用设置到对象的实例

Here is my code:

try
                    {
                        ppt = new Aspose.Slides.Presentation(filePath);
                    }
                    catch(Exception ex)
                    {
                        string str = "{\"status\":\"1\",\"msg\":\"file_corrupt\"}";
                        throw new Exception(str);
                    }

@polyv.net,

I have worked with the presentation file shared by you and have been able to observe the issue specified. An issue with ID SLIDESNET-40426 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 notified once the issue will be fixed.

Not java version, we use slides .net

@polyv.net,

I have observed your comments and created ticket in Aspose.Slides for .NET as well.

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