Follow this Troubleshoot connecting guide. It will take you step by step:
In the meantime and on the same time:
Most common issue is probably in the connection string. Please mask (use something like <here come password> ) the sensitive information and provide the connection string which you are using.