Showing posts with label Cannot connect to the Sharepoint Site. Show all posts
Showing posts with label Cannot connect to the Sharepoint Site. Show all posts

Tuesday, 16 August 2011

Cannot connect to the Sharepoint Site: http://xxx. Make sure that the Site URL is valid, that the Sharepoint site is running on the local computer, and that the current user has the necessary permissions to access the site.

When you are creating a new project in Visuaal Studio 2010 for Sharepoint 2010 you could get this error:

Cannot connect to the Sharepoint Site: http://xxxx. Make sure that the Site URL is valid, that the Sharepoint site is running on the local computer, and that the current user has the necessary permissions to access the site.

Aditional information:

"Cannont connect to the Sharepoint site: http://xxxx  Make sure that the Site URL is valid, that the Sharepoint site is running on the local computer. If you moved this project to a new computer or if the URL of the Sharepoint site has changed since you created the project, update the Site URL property of the project. "

This is the Screen Shot:

To sort this out we will need to  to have the permissions on the content database linked to the deploying web application.

The databases involved are:
1-SharePoint_Config

2-SharePoint_AdminContent_guid

Do the following:
1- Open SQL Server Management Studio.
2- Go to the Server->Security->Logins and select the one you are using for development.

3- Go to Server Roles and be sure youy select "public" and "sysadmin".

4- Close SQL Server Management Studio.