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.
"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:
Do the following: