Error occurred in deployment step ‘Recycle IIS Application Pool’: The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm

When I tried to deploy a SharePoint Solution, I got the following error:

Error occurred in deployment step ‘Recycle IIS Application Pool’: The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm.

2

Cause:

This issue may occur because of one of the following:
  1. The Visual Studio is not running as Administrator.
  2. The current user is not a site collection Administrator.
  3. The SQL Server service is not running.
  4. The SharePoint web application pool is stopped.
  5. The SharePoint web application pool Account is locked.
  6. The current user (the user used to run visual studio and deploy your solution) didn’t have ‘db-owner on
    • Content Database.
    • SharePoint_Admin.
    • SharePoint Config database.
  7. The SharePoint web application pool account didn’t have the following role:
    • ‘db-owner’ and SP_DATA_ACCESS on Content Database.
    • WSS_CONTENT_APPLICATION_POOLS on SharePoint_Admin.
    • WSS_CONTENT_APPLICATION_POOLS on SharePoint Config database.

Solution:

 SQL Server service is not running:

 To run SQL Server service follow the mentioned steps in this article .

Application Pool is stopped:

 Try to run IISRESET command, if still stopped so it’s may be occurred after you change the password of the application pool account so try to reset it.
  • Open IIS Manager
  • Select your application pool of your web application
  • Click advanced settings
  • Under identity click to reset the application pool account
  • Click set to update the user name and password of your account
  • Run IISRESET command.
reset application pool account

The current logged-in user may not be the “db owner” on the content databases.:

 To deploy the solution successfully, you need to map the current logged-in user as db_owner into the 3 databases.
  • SharePoint_Config
  • SharePoint_Admin_[GUID]
  • Content Databases of your web application that you need to deploy your solution.
Enjoy 🙂
Advertisements

5 thoughts on “Error occurred in deployment step ‘Recycle IIS Application Pool’: The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm

  1. Hello Mohammed,

    I got the same problem, i have changed the users mapping as db_owner into the 3 databases but the problem is still there !!!!
    any advice !!!

    thx

    Like

  2. In my case SQL Server service was not started, I start it and deploy the webpart project in vs 2010 again, it works

    Like

  3. you’re in point of fact a just right webmaster.
    The website loading velocity is incredible. It kind of feels that you’re doing any unique trick.
    Also, The contents are masterwork. you have done a excellent task on
    this topic!

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s