System.InvalidOperationException: pItem haven't found in paragraph items
at Syncfusion.DocIO.DLS.WParagraph.UpdateText(ParagraphItem pItem, Int32 removeTextLength, String newText)
at Syncfusion.DocIO.DLS.WTextRange.set_Text(String value)
at Syncfusion.DocIO.DLS.WTextRange.SplitByParagraphBreak()
at Syncfusion.DocIO.DLS.WTextRange.SplitWidgets()
at Syncfusion.DocIO.DLS.WTextRange.CreateLayoutInfo()
at Syncfusion.DocIO.DLS.WidgetBase.Syncfusion.Layouting.IWidget.get_LayoutInfo()
at Syncfusion.Layouting.LeafLayoutContext.GetNextSibling(WTextRange textRange)
at Syncfusion.Layouting.LeafLayoutContext.GetMinWidth(WTextRange currTextRange, SizeF size, RectangleF rect)
at Syncfusion.Layouting.LeafLayoutContext.AdjustClientAreaBasedOnTextWrap(ILeafWidget leafWidget, SizeF& size, RectangleF& rect)
at Syncfusion.Layouting.LeafLayoutContext.Layout(RectangleF rect)
at Syncfusion.Layouting.LCContainer.DoLayoutChild(LayoutContext childContext)
at Syncfusion.Layouting.LCContainer.Layout(RectangleF rect)
at Syncfusion.Layouting.LCLineContainer.DoLayoutChild(LayoutContext childContext)
at Syncfusion.Layouting.LCContainer.Layout(RectangleF rect)
at Syncfusion.Layouting.LCContainer.DoLayoutChild(LayoutContext childContext)
at Syncfusion.Layouting.LCContainer.Layout(RectangleF rect)
at Syncfusion.Layouting.LCContainer.DoLayoutChild(LayoutContext childContext)
at Syncfusion.Layouting.LCContainer.Layout(RectangleF rect)
at Syncfusion.Layouting.Layouter.Layout(IWidgetContainer widget, ILayoutProcessHandler handler, DrawingContext dc, Int32 currPageIndex)
at Syncfusion.DocIO.DLS.Rendering.DocumentLayouter.LayoutPages()
at Syncfusion.DocIO.DLS.Rendering.DocumentLayouter.Layout(IWordDocument doc)
at Syncfusion.DocToPDFConverter.DocToPDFConverter.ConvertToPDF(WordDocument wordDocument)
at Diflexmo.Forwarding.Services.DocumentService.GenerateCustomsPreview(Guid customsoperationalFileId, Guid templateId, ApplicationUser user) in C:\Users\Maarten\Source\Repos\Diflexmo.Forwarding\Diflexmo.Forwarding.Services\DocumentService.cs:line 129
at Diflexmo.Forwarding.Web.Areas.Operational.Controllers.DocumentController.GenerateCustomsOrderPreview(Guid customoperationalFileId, Guid operationalFileId) in C:\Users\Maarten\Source\Repos\Diflexmo.Forwarding\Diflexmo.Forwarding.Web\Areas\Operational\Controllers\DocumentController.cs:line 188
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.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)