Sunday, 7 September 2014

SharePoint On-Premise:Feature Activation fails with timeout error

Did you ever face this problem when your feature activation keeps throwing a timeout error , first I thought it's might occur because of un-optimized code blocks in the feature activated event receiver. I tried to deploy the features many times with no luck.

The interesting bit is, when debugging the feature activation code it fails every time in different step not always failing at the same line of code. Which makes me question the fact that there is something wrong in the code block I wrote. I came to a conclusion that it's a timeout setting for Visual studio feature activation.

According to this MSDN link , there is a Registry Key called ChannelOperationTimeout Which represents the deployment timeout from Visual studio the default value is 120 seconds. Once I increased its value you and restart Visual Studio my problem was solved !


The registry key path HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\SharePointTools