Saturday, May 2, 2015

Resolving System.Threading.ThreadAbortException: Thread was being aborted error when performing a long time consuming operation in a page from Layouts folder

Sometimes we use SharePoint application pages or web parts to perform heavy operations those take long time than usual. In that case we have to explicitly increase the timeout periods using the Web.Config file.

Recently I came across a similar situation where an application page is used to create site collections using custom definitions.To resolve the error I modified the Web.Config file of the relevant web application and provided following values.

  1. <httpRuntime maxRequestLength="2097152" executionTimeout="1500" requestLengthDiskThreshold="8192" shutdownTimeout="108000" />

Unfortunately that remedy didn’t work.

After few hours of struggling it occurred to me that I was modifying the wrong Web.Config file. Since my page is located in Layouts folder, the page is not directly bound to a specific web application. For these kind of situations we are provided with a different Web.Config file, which is located under the Layouts folder.

image

I had to do following modification to increase the timeout period under system.web section

  1. <httpRuntime executionTimeout="1500" />

That fixed my issue.

15 comments:

Me said...

This was exactly what I needed, after some overnight work the light finally comes xD

Petter Marry said...
This comment has been removed by the author.
Sarah Jasson said...

I found the content very informative! before this, I was aware about the types of stem cells that existed so this was something new to read about.
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells
Amniotic Derived Stem Cells

priya said...

Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.
Data Science training in chennai
Data Science training in OMR
Data Science training in chennai
Data Science Training in Chennai
Data Science training in Chennai
Data science training in bangalore

EXCELR said...

I read this post two times, I like it so much, please try to keep posting & Let me introduce other material that may be good for our community.

EXCELR said...

I read this post two times, I like it so much, please try to keep posting & Let me introduce other material that may be good for our community. data science courses

99 Digital Academy said...

Really Amazing Article, I have seen here. This is in related to your article that the Best Digital Marketing Course offered by 99 Digital Academy. The course is designed for students, professionals and for business owners. This course is in trend. Click on link to see more.

data scientist course said...

You should talk it's shocking. Your blog survey would extend your visitors. I was fulfilled to find this site.I expected to thank you for this phenomenal read!!
data scientist course in hyderabad

Unknown said...

Very nice article. I enjoyed reading your post. very nice share. I want to twit this to my followers. Thanks !. ai course in delhi

Business Services said...

Cyber Security in Healthcare

Unknown said...

This is an excellent post I seen thanks to share it. It is really what I wanted to see hope in future you will continue for sharing such a excellent post. business analytics course in kanpur

Unknown said...

I think about it is most required for making more on this get engaged business analytics course in kanpur

Ramesh Sampangi said...

Really an awesome blog and informative content. Keep sharing more content with us. Thanks for sharing with us.
Data Science Course Institute in Hyderabad

vamsi said...

This is such a great resource that you are providing

DevOpsTraining in Hyderabad

Tiktok Loader said...


We feel excited to read your valuable post and please always be inspired and keep posting.

instagram photo download