Unable to publish due to COM casting error 0x80004002

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
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<br/>
Version 6.1.7601 Service Pack 1 Build 7601<br/>
Other OS Description Not Available<br/>
OS Manufacturer Microsoft Corporation<br/>
System Name MANJULA-PC<br/>
System Manufacturer ASUSTek Computer Inc.<br/>
System Model G60JX<br/>
System Type x64-based PC<br/>
Processor Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2267 Mhz, 2 Core(s), 4 Logical Processor(s)<br/>
BIOS Version/Date American Megatrends Inc. 206, 15-Mar-10<br/>
SMBIOS Version 2.6<br/>
Windows Directory C:Windows<br/>
System Directory C:Windowssystem32<br/>
Boot Device DeviceHarddiskVolume2<br/>
Locale United States<br/>
Hardware Abstraction Layer Version = "6.1.7601.17514"<br/>
Installed Physical Memory (RAM) 4.00 GB<br/>
Total Physical Memory 3.86 GB<br/>
Available Physical Memory 1.39 GB<br/>
Total Virtual Memory 7.73 GB<br/>
Available Virtual Memory 4.71 GB<br/>
Page File Space 3.86 GB<br/>
Page File C:pagefile.sys<br/>
<br/>

VS 2010 Premium info
Microsoft Visual Studio 2010<br/>
Version 10.0.30319.1 RTMRel<br/>
Microsoft .NET Framework<br/>
Version 4.0.30319 RTMRel<br/>
<br/>
Installed Version: Premium<br/>
<br/>
Microsoft Office Developer Tools 01021-532-2002102-70314<br/>
Microsoft Office Developer Tools<br/>
<br/>
Microsoft Visual Basic 2010 01021-532-2002102-70314<br/>
Microsoft Visual Basic 2010<br/>
<br/>
Microsoft Visual C# 2010 01021-532-2002102-70314<br/>
Microsoft Visual C# 2010<br/>
<br/>
Microsoft Visual C++ 2010 01021-532-2002102-70314<br/>
Microsoft Visual C++ 2010<br/>
<br/>
Microsoft Visual F# 2010 01021-532-2002102-70314<br/>
Microsoft Visual F# 2010<br/>
<br/>
Microsoft Visual Studio 2010 Code Analysis Spell Checker 01021-532-2002102-70314<br/>
Microsoft Visual Studio 2010 Code Analysis Spell Checker<br/>
<br/>
Portions of International CorrectSpellâ spelling correction system 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.<br/>
<br/>
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.<br/>
<br/>
Microsoft Visual Studio 2010 Team Explorer 01021-532-2002102-70314<br/>
Microsoft Visual Studio 2010 Team Explorer<br/>
<br/>
Microsoft Visual Web Developer 2010 01021-532-2002102-70314<br/>
Microsoft Visual Web Developer 2010<br/>
<br/>
Crystal Reports for .NET Framework 4.0 <br/>
Crystal Reports for .NET Framework 4.0<br/>
<br/>
<br/>
Hotfix for Microsoft Visual Studio 2010 Premium - ENU (KB2542054) KB2542054<br/>
This hotfix is for Microsoft Visual Studio 2010 Premium - ENU.<br/>
If you later install a more recent service pack, this hotfix will be uninstalled automatically.<br/>
For more information, visit http://support.microsoft.com/kb/2542054.<br/>
<br/>
Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.30319<br/>
Microsoft Visual Studio 2010 SharePoint Developer Tools<br/>
<br/>
Security Update for Microsoft Visual Studio 2010 Premium - ENU (KB2251489) KB2251489<br/>
This security update is for Microsoft Visual Studio 2010 Premium - ENU.<br/>
If you later install a more recent service pack, this security update will be uninstalled automatically.<br/>
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

View the full article
 
Back
Top