Tried to connect to a SQL Server using Microsoft SQL Server Management Studio 2005 and got the following error message (plus the databases wouldn't show):-
Index was outside the bounds of the array. (Microsoft.SqlServer.Smo)
Check the SQL Server version and it was a SQL
Server 2012 SP1 CPU5 Enterprise Edition.
I just used Microsoft SQL Server Management Studio
2012 and all is well