Error connecting to server

Error message "A connection with the server could not be established"

Problem

Error while adding an account, or while synchronising.

Error message

        A connection with the server could not be established
System.Exception: The text associated with this error code could not be found.

Possible causes

This error can have multiple causes. Here are some possible causes. It's possible this list is not exhausting.