none
Unable to publish due to COM casting error 0x80004002

    Question

  • Hi, I recently installed VS 2010 Premium. Since then I can not publish any of my projects due to this error,

    Error    1    Publish failed with the following error: 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: 0x80004002 (E_NOINTERFACE)).        1    1    WindowsApplication1

    I just created a new Visual Basic Windows forms application and without adding any code published the project. (I do get this in my previous working projects also).

    Here is my System configuration

    Windows 7 info

    OS Name    Microsoft Windows 7 Home Premium
    Version    6.1.7601 Service Pack 1 Build 7601
    Other OS Description     Not Available
    OS Manufacturer    Microsoft Corporation
    System Name    MANJULA-PC
    System Manufacturer    ASUSTek Computer Inc.
    System Model    G60JX
    System Type    x64-based PC
    Processor    Intel(R) Core(TM) i5 CPU       M 430  @ 2.27GHz, 2267 Mhz, 2 Core(s), 4 Logical Processor(s)
    BIOS Version/Date    American Megatrends Inc. 206, 15-Mar-10
    SMBIOS Version    2.6
    Windows Directory    C:\Windows
    System Directory    C:\Windows\system32
    Boot Device    \Device\HarddiskVolume2
    Locale    United States
    Hardware Abstraction Layer    Version = "6.1.7601.17514"
    Installed Physical Memory (RAM)    4.00 GB
    Total Physical Memory    3.86 GB
    Available Physical Memory    1.39 GB
    Total Virtual Memory    7.73 GB
    Available Virtual Memory    4.71 GB
    Page File Space    3.86 GB
    Page File    C:\pagefile.sys

    VS 2010 Premium info

    Microsoft Visual Studio 2010
    Version 10.0.30319.1 RTMRel
    Microsoft .NET Framework
    Version 4.0.30319 RTMRel

    Installed Version: Premium

    Microsoft Office Developer Tools   01021-532-2002102-70314
    Microsoft Office Developer Tools

    Microsoft Visual Basic 2010   01021-532-2002102-70314
    Microsoft Visual Basic 2010

    Microsoft Visual C# 2010   01021-532-2002102-70314
    Microsoft Visual C# 2010

    Microsoft Visual C++ 2010   01021-532-2002102-70314
    Microsoft Visual C++ 2010

    Microsoft Visual F# 2010   01021-532-2002102-70314
    Microsoft Visual F# 2010

    Microsoft Visual Studio 2010 Code Analysis Spell Checker   01021-532-2002102-70314
    Microsoft Visual Studio 2010 Code Analysis Spell Checker

    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

    Microsoft Visual Studio 2010 Team Explorer   01021-532-2002102-70314
    Microsoft Visual Studio 2010 Team Explorer

    Microsoft Visual Web Developer 2010   01021-532-2002102-70314
    Microsoft Visual Web Developer 2010

    Crystal Reports for .NET Framework 4.0  
    Crystal Reports for .NET Framework 4.0


    Hotfix for Microsoft Visual Studio 2010 Premium - ENU (KB2542054)   KB2542054
    This hotfix is for Microsoft Visual Studio 2010 Premium - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/2542054.

    Microsoft Visual Studio 2010 SharePoint Developer Tools   10.0.30319
    Microsoft Visual Studio 2010 SharePoint Developer Tools

    Security Update for Microsoft Visual Studio 2010 Premium - ENU (KB2251489)   KB2251489
    This security update is for Microsoft Visual Studio 2010 Premium - ENU.
    If you later install a more recent service pack, this security update will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/2251489.

    I tried many advices given on the internet. Hope somebody can find me a fix.

    Thanking in advance,

    Manjula

    Wednesday, July 27, 2011 6:48 PM

All replies