Unable to establish server mode SSAS tabular mode

Ever encountered the above error when starting SQL server management studio and connecting to SSAS ? The error has a few different root causes one of which is detailed in the link below.

https://connect.microsoft.com/SQLServer/feedback/details/686801/ssms-raises-unable-to-establish-server-mode-error-if-ssas-encounters-errors-during-startup

However this is not the only cause, the error can even occur if the databases are not operational. E.g. in this case the database was corrupt it opened fine in SQL Server 2014 management studio but refused to open in SQL 2012 management studio.

Once the databases were dropped and I tried connecting to Analysis Services and it went thru fine.

Here is another blog that covers the issue as having the root cause as incorrect default database in connection sting.

http://cwebbbi.wordpress.com/2012/05/28/unable-to-establish-server-mode-error-in-ssms/