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.
4- Close SQL Server Management Studio.


