locked
Unable to cast COM object error? RRS feed

  • Question

  • Hello,
    I get the following error when I attempt certain operations in TFS Version Control. Most often on a delete:

    ---------------------------
    Microsoft Visual Studio
    ---------------------------
    Error

    Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.Shell.Interop.IVsProject2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{4AF886C3-7796-4C81-A174-4A87080DEE58}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
    ---------------------------
    OK  
    ---------------------------

    Has anyone seen this error before?

    My envrionment:
    TFS SP1
    VS2005 Team Suite SP1
    WebDeployment Projects Add-in

    Thanks,
    Graham

    Tuesday, March 20, 2007 9:01 PM

Answers

  • It looks like the TFS integration with Visual Studio has gotten broken somehow.  I'd first try to repair the install of Team Explorer, and if you still see this, then repair Visual Studio Team Suite.
    Thursday, March 22, 2007 3:57 AM
    Moderator

All replies

  • It looks like the TFS integration with Visual Studio has gotten broken somehow.  I'd first try to repair the install of Team Explorer, and if you still see this, then repair Visual Studio Team Suite.
    Thursday, March 22, 2007 3:57 AM
    Moderator
  • Hey James,

    Sorry for the slow response. Live Alerts weren’t working for me for some reason… I did the repair and the installer choked on a .dll in the Team Explorer install. So I uninstalled  reinstalled Team Explorer and everything seems great for now.

     

    Have you seen this often? I’ve seen this error from time to time on developer machine, but haven’t been able to pin down the circumstances. What’s weird is that a developer that is getting this error can usually work normally otherwise.

     

    Thanks,

    Graham

    Wednesday, March 28, 2007 1:33 PM
  • I had a similar problem and found that reinstalling Team Explorer did not do the trick.  What did work though was using the TFS command equivalent in the Visual Studio Command Prompt of what I wanted to accomplish.  In my case I received the error when trying to undo a pending change but when I undid the pending change using the undo command it worked fine. 
    • Proposed as answer by Amare1982 Sunday, December 11, 2011 10:58 PM
    Thursday, March 27, 2008 2:30 PM
  • Well it's more than 3.5 years but your reply helped me. I was undoing a pending change and getting similar error as mentioned above. Well actually I was trying to undo a folder that never existed at that location (and still don't know as to why it was showing up). However I opened VS 2008 command prompt and navigated to that location and just did what you mentioned:

    tf undo nameOfTheFolder

    At the same instant in the GUI - View Pending Changes - that folder disappeared.

    Thanks

    • Proposed as answer by Amare1982 Friday, February 17, 2012 4:12 AM
    Sunday, December 11, 2011 10:58 PM