SharePoint feature activation error ‘Request timed out’

When we activating a feature that contains a featurereceiver doing heavy actions, for instance;

  1. Creating lists
  2. Modifying existing site columns
  3. And/or most probably content types because we faced the issue here J I received a “Request timed out” error at the Manage Features page. We have Solution Base Content type which contains more than 60 Site columns and more than 10 Page Layouts further child content types so when it update the Child Contents it require huge amount of time.

This is of course that the execution time exceeds the maximum execution timeout. Considering the feature applies changes to contenttypes and updating those to the children using the method SPContentType.Update(true) that could surely be the case. SharePoint itself does such updates using a LongRunningOperationJob that executes on a separate thread somewhat like a timer job.

I thought about modifying the request/execution timeout, but that was not the best solution in my case. SharePoint itself does this, check out the web.config in the /_layouts/ folder. It contains executionTimouts overrides for some pages using location elements.

About Krishana Kumar

Krishana Kumar is SharePoint Architect/Trainer having Architecture experience with high volumes at Enterprise level and global scale - creation of highly scalable solutions with global user base and geographically distributed architectural components. Good knowledge of SharePoint best practices and governance models. I hold Two Master degree in Computer Science with over 11 years of experience working on Microsoft Technologies specially SharePoint, Project, .NET and other Information Worker Technologies. Having good exposer in Client side scripting Angular.js, backbone and Node. I am currently responsible for SharePoint Infrastructure set up and leading teams in various medium and large scale projects, architecting, designing & installing SharePoint farms, developing custom components,, and providing advanced SharePoint administration and development training to teams and customers. I regularly speaks in various SharePoint User Groups and other Events. I have MCSA Windows Azure, MCSA Office 365, MCSE & MCSD SharePoint 2013, Microsoft Certified Developer (MCD) and holds MCPD, MCTIP and MCTS for SharePoint 2010, MCTS MOSS 2007 & WSS 3.0, MCPD, MCITP (EPM 2010 & 2007) and MCSD .NET.
This entry was posted in General Interest. Bookmark the permalink.

One Response to SharePoint feature activation error ‘Request timed out’

  1. I have read so many posts about the blogger lovers however this post is really a pleasant article, keep it up.

Leave a Reply

Your email address will not be published. Required fields are marked *