Unable to cast COM object of type ‘System.__ComObject’ – ahhh what?
With a new Windows7 VM on my MBP I have MSSQL Server 2008 R2, vs2008, vs2010…and sadly SourceGear Vault 3.5 which made it so SQL couldn’t connect to a server via the object browser.
Looked like this:
Unable to cast COM object of type ‘System.__ComObject’ to interface type ‘Microsoft.VisualStudio.OLE.Interop.IServiceProvider’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{6D5140C1-7436-11CE-8034-00AA006009FA}’ failed due to the following error: No such interface supported (Exception from HRESULT: 0×80004002 (E_NOINTERFACE)).
These helpful posts fixed me up:
http://support.sourcegear.com/viewtopic.php?f=5&t=12680&p=52790&hilit=management+studio#p52790
http://social.msdn.microsoft.com/forums/en-US/sqltools/thread/d5d3e5fc-d8ce-4f42-b7ea-9bbbb7756a20/




