Error occurred in deployment step'Uninstall app for SharePoint': Cannot connect to the SharePoint Site.
Reason: You don't have permission on site and Database.
Reason: You don't have permission on site and Database.
Solution.
1. Share SharePoint site to the user.
2. Add user name in SharePoint database.
Open SQL Server using Administrator. Open database.
Click on Security
Click on Logins.
Add user name.
If user is there, Select the User.
New window will open.
Select User Mapping.
First Find the Content Data base of the Site which you want to provide the access
1. Share SharePoint site to the user.
2. Add user name in SharePoint database.
Open SQL Server using Administrator. Open database.
Click on Security
Click on Logins.
Add user name.
If user is there, Select the User.
New window will open.
Select User Mapping.
First Find the Content Data base of the Site which you want to provide the access
Open Central Admin
Click on Application Management
Click on View All site collections
Select the Wen Application where your site collection is there.
Select the site collection.
You can fine Database name:
Now in the SQL User Mapping section select the database name.
Give db_owner permission
Click on Application Management
Click on View All site collections
Select the Wen Application where your site collection is there.
Select the site collection.
You can fine Database name:
Now in the SQL User Mapping section select the database name.
Give db_owner permission