Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Thread being abortedThread being aborted
Previous
 
Next
New Post
4/2/2014 9:22 AM
 

One of our clients gets the error Thread being aborted when trying to generate .pdf's on our site. I have tried recreating this error on my local machine using both test and production sites and am unable to do so. I researched and found that extending the executionTimeout and adding shutdownTimeout to the web.config set to 1800 would help resolve this but it has not fixed the issue for them. Could this be a network setting on their end or an issue with the machine settings on their network? 

 
New Post
4/2/2014 1:15 PM
 

the short answer is "it depends" -when you're doing a long-running task such as generating a pdf, the most common reason for a thread abort is that the page times out - the default value depends on the version of .net but is usually 110 seconds, so increasing executionTimeout will often help (shutDownTimeout wont help as it applies to idle applications, not ones running a request).

However there can be other reasons - for instance if the PDF file is very large then it may exceed the maximum size (depending on how it is being generated),  so increasing the maxRequestLength on the HttpRuntime attribute can help.

Another factor can be something external to asp.net -the most common of these is the database e.g if the pdf is being generated based on a database query and it times out (it has a maximum of 90 seconds AFAIR) then the database throws an exception and this bubbles up as a thread abort exception. There's not much that can be done here with the default connectionString as it uses Microsoft's database access library which has a fixed timeout - but you could use your own library (or even just simple ado.net) to set a different timeout and use that (though really the best way is to reduce the load or increase the SQL server ram/cpu)


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/2/2014 1:42 PM
 

Thanks for the timely response!

I will give these suggestions a shot and post the results here.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Thread being abortedThread being aborted


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out