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

Free Support Forum - aspose.com

Exception while converting 2 MB Word Doc into PDF

I am trying to test your word to PDF conversion utility by modifying the comparison example you have given in github (https://github.com/aspose-words/Aspose.Words-for-.NET).
But when converting a 2MB document I am getting an exception, the stacktrace of the exception is given below:

‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131701726838046088): Loaded ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.HtmlParser\v4.0_14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.HtmlParser.dll’. Cannot find or open the PDB file.
Exception thrown: ‘System.NotSupportedException’ in mscorlib.dll
Exception thrown: ‘System.InvalidOperationException’ in Aspose.Words.dll
Revisions: System.InvalidOperationException: Unknown markup level.
at .(StructuredDocumentTag )
at .(StructuredDocumentTag , Node , Boolean )
at .()
at .VisitStructuredDocumentTagStart(StructuredDocumentTag )
at Aspose.Words.Markup.StructuredDocumentTag.r3ka8zscesabkstb24kjjv9sml9wq7pw​ (DocumentVisitor )
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Markup.StructuredDocumentTag.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Tables.Row.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Tables.Table.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Body.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Section.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Document.Accept(DocumentVisitor visitor)
at .( )
at .(Document , )
at ​ .​ ​ ()
at ​ .( )
at .( , )
at .(Node , )
at Aspose.Words.Document.()
at Aspose.Words.Document.(Stream , String , SaveOptions )
at Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
at Aspose.Words.Document.Save(String fileName)
at DocumentComparison.DocumentComparisonUtil.Convert(String document1) in D:\Rahul\Aspose.Words-for-.NET-master\Showcases\Document_Comparison_by_Aspose_Words_for_NET\DocumentComparison\DocumentComparisonUtil.cs:line 61
Exception thrown: ‘System.NotSupportedException’ in mscorlib.dll
The thread 0x1764 has exited with code 0 (0x0).
The thread 0x1c38 has exited with code 0 (0x0).
Exception thrown: ‘System.InvalidOperationException’ in Aspose.Words.dll
Revisions: System.InvalidOperationException: Unknown markup level.
at .(StructuredDocumentTag )
at .(StructuredDocumentTag , Node , Boolean )
at .()
at .VisitStructuredDocumentTagStart(StructuredDocumentTag )
at Aspose.Words.Markup.StructuredDocumentTag.r3ka8zscesabkstb24kjjv9sml9wq7pw​ (DocumentVisitor )
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Markup.StructuredDocumentTag.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Tables.Row.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Tables.Table.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Body.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Section.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Document.Accept(DocumentVisitor visitor)
at .( )
at .(Document , )
at ​ .​ ​ ()
at ​ .( )
at .( , )
at .(Node , )
at Aspose.Words.Document.()
at Aspose.Words.Document.(Stream , String , SaveOptions )
at Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
at Aspose.Words.Document.Save(String fileName)
at DocumentComparison.DocumentComparisonUtil.Convert(String document1) in D:\Rahul\Aspose.Words-for-.NET-master\Showcases\Document_Comparison_by_Aspose_Words_for_NET\DocumentComparison\DocumentComparisonUtil.cs:line 61

@mhtsharma9,

Thanks for your inquiry. Please ZIP and attach your input Word documents here for testing. We will investigate the issue on our side and provide you more information.

Sorry for late response. Here is the document for which we are getting error.StudyProtocolTest.zip (1.3 MB)

Also please let me know why Aspose does not support Table in Table structure.

@mhtsharma9,

Thanks for sharing the document. We have converted the shared document to PDF using latest version of Aspose.Words for .NET 18.5 and have not found the shared issue. Please use Aspose.Words for .NET 18.5. We have attached the output PDF with this post for your kind reference. 18.5.pdf (113.9 KB)