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

Free Support Forum - aspose.com

PptReadException: Wrong size of UserEditAtom on loading presentation (C# .NET)

if I try to process attached file using latest ASPOSE Slides for C#, I get unhandled exception:
System.Exception occurred
Message=Couldn’t read [ , Header:RecordHeader, Type:0xFF5 [RT_UserEditAtom], Version:0, Instance:0, Length:0x0]
at Aspose.Slides. .(BinaryReader , , )
at Aspose.Slides. .(MemoryStream , Int64 , )
at Aspose.Slides. .( )
at Aspose.Slides.Presentation.( )
at Aspose.Slides.Presentation.(Stream )
at Aspose.Slides.Presentation.(String )
at Aspose.Slides.Presentation…ctor(String file)
at ExcelAutomation.Form1.button5_Click(Object sender, EventArgs e) in C:\Code\Custom\ExcelAutomation\ExcelAutomation\Form1.cs:line 174
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at ExcelAutomation.Program.Main() in C:\Code\Custom\ExcelAutomation\ExcelAutomation\Program.cs:line 19

Inner Exception 1:
PptReadException: Wrong size of UserEditAtom.

This seems to be caused by fact that the file when opened in PowerPoint reports to be opened in “Protected View”. Is this
something which can be handled? Either allow file to be processed or return some more meaningful message?All_Master_Slides.zip (4.5 KB)


I have worked with source code and presentation file shared by you using Aspose.Slides for .NET 17.8 and have been able to observe the issue. A ticket with ID SLIDESNET-39301 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with issue so that you may be automatically notified once issue will be fixed.

We are sorry for your inconvenience,