ErrorsCannot access the local farm. Verify that the local farm is properly configured, currently available, and that you have the appropriate permissions to access the database before trying again.
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.
ResolutionThere are 2 ways to resolving this issue.
Preferable Method(1st method):
Use Power shell command to provide user id access to SharePoint DB's.
- "Add-SPShellAdmin -UserName domain\username" This will add permissions to the config database in SharePoint 2010
- "Get-SPContentDatabase -WebApplication
" This will return information on the content database for the desired web application
- "Add-SPShellAdmin -UserName domain\username -database
" This will add permissions to the content database for the desired web application
Add the userid as DBOwner to Configuration and Content DB. Though this is not best practice but will at least get you going.