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

Free Support Forum - aspose.com

PPTX AddClone throws exception

Here is the exception detail:

Aspose.Slides.Pptx.PptxReadException was unhandled by user code
Message=Error clonning slide
Source=Aspose.Slides
StackTrace:
at …(‘ document, ‘ source)
at Aspose.Slides.Pptx.PresentationEx.(BaseSlideEx source)
at Aspose.Slides.Pptx.SlidesEx.(SlideEx slide, LayoutSlideEx layout)
at Aspose.Slides.Pptx.SlidesEx.(SlideEx slide, MasterSlideEx master)
at Aspose.Slides.Pptx.SlidesEx.AddClone(SlideEx slide, MasterSlideEx master)
at Web.Controllers.PresentationController.GetSlideThumbnail(Int32 id, Int32 presentationId) in C:\Projects\Solo\trunk\FoodServiceV1.5\Web\Controllers\PresentationController.cs:line 338
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary’2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary’ 2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.b__12()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func’1 continuation)
InnerException: System.Xml.Schema.XmlSchemaValidationException
Message=The element ‘bldLst’ in namespace ‘http://schemas.openxmlformats.org/presentationml/2006/main
has incomplete content. List of possible elements expected: ‘http://schemas.openxmlformats.org/presentationml/2006/main:bldP http://schemas.openxmlformats.org/presentationml/2006/main:bldDgm http://schemas.openxmlformats.org/presentationml/2006/main:bldOleChart http://schemas.openxmlformats.org/presentationml/2006/main:bldGraphic’.
Source=System.Xml
LineNumber=1
LinePosition=25887
SourceUri=""
StackTrace:
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(ValidationEventHandler eventHandler, Object sender, XmlSchemaValidationException e, XmlSeverityType severity)
at System.Xml.Schema.XmlSchemaValidator.CompleteValidationError(ValidationState context, ValidationEventHandler eventHandler, Object sender, String sourceUri, Int32 lineNo, Int32 linePos, XmlSchemaSet schemaSet)
at System.Xml.Schema.XsdValidator.ValidateEndElement()
at System.Xml.Schema.XsdValidator.Validate()
at System.Xml.XmlValidatingReaderImpl.ProcessCoreReaderEvent()
at System.Xml.XmlValidatingReaderImpl.Read()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at …(‘ document, ‘ source)

InnerException:

Here is the code I am using:

PresentationEx master = new PresentationEx(Server.MapPath("~/Content/Presentation/Designs/SoloFS_Hospitality.pptx"));
PresentationEx temp = new PresentationEx(Server.MapPath("~/Content/Presentation/Slides/Go To Market.pptx"));

MasterSlideEx masterSlide = master.Slides[1].LayoutSlide.MasterSlide;
int tempMasterIdx = temp.Masters.AddClone(masterSlide);
int slideIdx = temp.Slides.AddClone(temp.Slides.Count > 1 ? temp.Slides[1] : temp.Slides[0], temp.Masters[tempMasterIdx]);

I am using this code successfully for every other PPTX in my project but the attached.

Hi Jason,


I have worked with the presentations shared by you and have been able to observe the issue specified. I have observed that the issue raised only when cloning 2nd slides. The rest of slides are cloned fine. An issue with ID SLIDESNET-33123 has been created in our issue tracking system to further investigate and resolve the issue. We will share the further information with you as soon as the issue will be resolved.

We are sorry for your inconvenience,

Could you please provide me with an update on the status of this issue? I’m getting significant pressure to resolve this issue for a Feb. 1 launch.

Thanks,

Hi Jason,


I regret to share that the issue shared has not been resolved yet. I have requested our development team to schedule the issue for investigation and share the ETA. I will share the information with you as soon as it is available.

Many Thanks,

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


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.