Hi,
We are trying to generate 20 MB document (.doc or .docx having around 5500 pages of text content) to PDF using Aspose.Words and it throwing an “Thread was being aborted.” exception.
Our application is in three tier architecture and UI layer is calling middle tier web service to generate the PDF file. We are getting this error while generating the PDF file. Could you please look in to this issue?
We are using Aspose.Words version 9.5.0.0
Strack trace:
Type : System.Threading.ThreadAbortException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : **Thread was being aborted.**
Source : mscorlib
Help link :
ExceptionState : System.Web.HttpApplication+CancelModuleException
Data : System.Collections.ListDictionaryInternal
TargetSite: Void putEntry(bucket[], System.Object, System.Object, Int32)
Stack Trace: at System.Collections.Hashtable.putEntry(bucket[] newBuckets, Object key, Object nvalue, Int32 hashcode)
at System.Collections.Hashtable.rehash(Int32 newsize)
at System.Collections.Hashtable.expand()
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Collections.Hashtable.Add(Object key, Object value)
at x4adf554d20d941a6.x3923a5fd933905d6.x2a0cb95ab84ba877(x591c1d6e66408377 xda5bf54deb817e37)
at x4adf554d20d941a6.xf3f447691ab38eee.x917b69030691beda(Object xf377779f33c1c51a, Int32 x961016a387451f05)
at x4adf554d20d941a6.x61c61e304d8f82bf.xef23aa45e7612fdd(x56410a8dd70087c5 xd9ff4dee1dba180e, x56410a8dd70087c5 x5906905c888d3d98)
at x4adf554d20d941a6.xeefdffd909e695da.xef23aa45e7612fdd(xac6c82c74ce247fb x93d8434f027afd5a, x56410a8dd70087c5 xd9ff4dee1dba180e, x56410a8dd70087c5 x5906905c888d3d98)
at x59d6a4fc5007b7a4.xcde671c53995c411.xd9db07500873ae98(Document x3664041d21d73fdc, xdeb77ea37ad74c56 xdfde339da46db651)
at Aspose.Words.Document.UpdatePageLayout()
at Aspose.Words.Document.get_xcde671c53995c411()
at xf989f31a236ff98c.x6c74398bceb133f8.xa2e0b7f7da663553(x8556eed81191af11 x5ac1382edb7bf2c2)
at Aspose.Words.Document.xf381a641001e6830(Stream xcf18e5243f8d5fd3, String xafe2f3653ee64ebc, SaveOptions xc27f01f21f67608c)
at Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
Thanks,
Balaji