In this post we will discuss how to resolve an error which usually comes when we try to deploy a SharePoint solution built using Visual Studio 2010. The full error message is:
"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.".
Also you can check out:
Before some days I got this error while trying to deploy a visual web part. I was developing the web part using visual studio 2010.
The error comes if your sql server is not running. So to solve the issue you can try folling things:
- Make sure you are able to connect to database server. Try to connect the SQL server using SQL Server Management Studio.
- To deploy these type of things you need admin privileges. So make sure your Visual Studio 2010 is running as an Administrator.
- Also make sure you have db_owner rights to the below databases:
3- Your current web application that needs to deploy the Web part.
- Make sure your SQL Server (MSSQLSERVER) service is running. You can check this in the Services (Start -> Run -> services.msc)
Hope it will resolve the issue.