Tuesday, May 8, 2012

Error occurred in deployment step ‘Recycle IIS Application Pool’: The local SharePoint server is not available.

While deploying a solution to sharepoint 2010, if user gets an error like "Error occurred in deployment step ‘Recycle IIS Application Pool’: The local SharePoint server is not available".

It means that account doesn't has sufficient rights to deploy a solution.

To solve the issue, you need to run Add-SPShellAdmin powershell command providing user name and content database GUID.

Syntax :
Add-SPShellAdmin -UserName user_name -database db_guid

[You can use Get-SPDatabase to get GUID for your content database. Make sure user running this command has permissions on SQL Server Database]

What it does?

i.) Add the user into WSS_Admin_WPG role
ii.) Provide him/her 'dbowner' and 'SharePoint_Shell_Access' permission in following databases :
  • Provided database in parameter.
  • SharePoint_AdminContent_<guid>
  • SharePoint_Config
I inspired to write this post from this link

No comments:

Post a Comment