Monday, 25 June 2012

Error occured in deployment step 'Add Solution/Activate Features': A timeout has occurred while while invoking commands in SharePoint host process.


I got the following error while deploying a SharePoint 2010 solution via visual studio 2010.



Solution:

Increase the timeout that visual studio waits for SharePoint deploy a feature

1. Open regedit from run.
2. Go to path [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\SharePointTools].
3. Create a new DWORD key called ChannelOperationTimeout.
4. Set the value for the new DWORD, that value is a timeout in seconds e.g 300 for 5 minutes.


Now restart visual studio 2010 ....

4 comments:

  1. nice find! I wouldnt have figured that out :) Thanks!!

    ReplyDelete
  2. in my local vm environment, i am not able to see this "ChannelOperationTimeout" option as part of the registry under HKCU\....'10\...

    ReplyDelete