Scene:
When multiple users use the same test machine for SharePoint development, it is found that only administrator users can deploy assemblies correctly to SharePoint, and other users cannot deploy even if they are added to the Administrators group.
Prompt for error when deploying:
The deployment Step "Recycle IIS application Pool" error occurs: The local SharePoint server is not available. Check to see if the server is running and connected to the SharePoint server farm.
Phenomenon:
The site URL is not valid, the local SharePoint server is not able to create a WebPart without the G.cs file
Reason:
The user has control over the SharePoint site and the front-end server for SharePoint, but does not have permissions on the SharePoint-related databases, and the workaround:
Open Sahrepoint SQL Server database, servers----security----Add users (deployment scenario users)
To configure this user mapping:
Add user rights to db_owner for the following databases
Sharepoint_config
SHAREPOINT_ADMINCONTENT_[GUID]
SharePoint Site Content DB
Open the VS again, build the project, compile the deployment, and deploy successfully. Good luck~~~
Problem solving ...
After that there was a problem. IIS application pool Recycle error ... This is the user itself to the site does not have access to the cause, Grant site collection administrator permissions, done, can be deployed properly.
Also consider a problem, configure the db_owner permissions, then every new application, configured as a site URL, you need to go to the database server configuration permissions, feel good trouble,
Later, the user is configured with a server role: SysAdmin, one click (there is no other problem will not know, haha)
Attached: Roles and Rights Management in SQL Server: 8722175
SharePoint Server domain account development URL is invalid