2012-08-30

Unable to cast COM object of type...

Was the error that bugged me for three days, any time I tried to connect to a database in SQL Server Management Studio. Re-installing the Management Studio or the whole SQL Server wasn't working. Neither the workarounds for registering some specific DLLs, or event (gasp!) changing some GUIDs in the registry. What eventually fixed my problem was running the following command in the command prompt (Administrator Mode) and rebooting:

sfc /scannow

(SFC stands for System File Checker)

It's kind of weird that this issue has been around since 2005, officially reported to Microsoft in 2009 and it's still bugging people today (like me) using Windows 7, Visual Studio 2010 and SQL Server 2008 R2. For the record here is where I found the fix.

No comments:

Post a Comment