If you have encoutered an error message like the one on the below figure
you may solve it by ensuring that the user trying to connect Visual Studio to SharePoint have the following:
1- The user needs to be administrator on the server
2- The user needs to be a member of the SharePoint Farm Admin Group
3- The user needs to have the sysadmin on the SQL server.
4- The user needs to have the db_owner right on the SharePoint databases.