When multiple users use the same test machine for SharePoint development, they find that only the administrator user can deploy the assembly to SharePoint correctly, and that other users cannot deploy even if they are added to the Administrators group, VisualStudio2010 deployment Hint Error:
An error occurred in the deployment step Recycle IIS application pool: The local SharePoint server is not available. Please check that the server is running and connected to the SharePoint server farm.
Because the user has control over the SharePoint site and SharePoint front-end servers, but does not have permissions on the SharePoint-related database, workaround:
Open the Sahrepoint SQL Server database, add users----security----
Configure this user mapping:
Add user permissions to db_owner for the following databases
Sharepoint_config
SHAREPOINT_ADMINCONTENT_[GUID]
SharePoint Site Content DB
Open vs again, build project, compile deployment, deploy successfully.
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/web/sharepoint/