Thread was being aborted while generating PDF

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
Strack trace:

Type : System.Threading.ThreadAbortException, mscorlib, Version=, 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)


Hi Balaji,
Thanks for your request. The problem probably occurs because timeout of operation. Converting such large document to PDF is a quite time consuming operation. You can find more information here:
Best regards,

We created a sample web application to generate PDF documents from 20 MB word document.
We deployed this sample application in our local machine which is running in IIS 5.0 and Windows XP and it successfully generated the PDF document with in 3.5 mins
When we deployed in our servers which is running IIS6.0 and window 2003, the PDF generation is not completed and we stopped after 20-25 mins.

We have deployed the same application in IIS 7 too and it works on IIS 7.
Unfortunately we are not in a stage to upgrade our servers to Window Server 2008/IIS 7.
Word Saving to PDF fails only IIS 6. In both IIS 5.1 and IIS 7, entire conversion takes place less than 3.5 minutes.

Thank you for your inquiry.
I do not think that it somehow depends on the library Aspose.Words.
More than confident that the problem in setting up IIS6.0. Try looking set Application Pool, may be necessary to increase the size of the pool. Did you try to convert other files of different size. What were the results on time?