由于COM转换错误0x80004002,因此无法发布 [英] Unable to publish due to COM casting error 0x80004002

查看:734
本文介绍了由于COM转换错误0x80004002,因此无法发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我最近安装了VS 2010 Premium.从那时起,由于这个错误,我无法发布任何项目,

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

错误    1  发布失败,并出现以下错误:无法将类型为"System .__ ComObject"的COM对象转换为接口类型为"Microsoft.VisualStudio.OLE.Interop.IServiceProvider".该操作失败,因为QueryInterface 由于以下错误,对具有IID'{6D5140C1-7436-11CE-8034-00AA006009FA}'的接口的COM组件进行调用失败:不支持此类接口(HRESULT异常:0x80004002(E_NOINTERFACE)). ;     1   1   WindowsApplication1

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

我刚刚创建了一个新的Visual Basic Windows窗体应用程序,并且没有添加任何代码发布该项目. (我在以前的工作项目中也确实得到了此信息.)

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).

这是我的系统配置

Windows 7信息

操作系统名称Microsoft Windows 7家庭高级版
版本6.1.7601 Service Pack 1 Build 7601
其他操作系统说明不可用
操作系统制造商微软公司
系统名称MANJULA-PC
系统制造商华硕电脑公司
系统模型G60JX
系统类型基于x64的PC
处理器英特尔®酷睿TM i5 CPU M 430  @ 2.27GHz,2267 Mhz,2个内核,4个逻辑处理器
BIOS版本/日期美国大趋势公司206,2010年3月15日
SMBIOS版本2.6
Windows目录C:\ Windows
系统目录C:\ Windows \ system32
引导设备\ Device \ HarddiskVolume2
语言环境美国
硬件抽象层版本="6.1.7601.17514"
已安装的物理内存(RAM) 4.00 GB
总物理内存3.86 GB
可用物理内存1.39 GB
虚拟内存总数7.73 GB
可用虚拟内存4.71 GB
页面文件空间3.86 GB
页面文件C:\ pagefile.sys

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信息

Microsoft Visual Studio 2010
版本10.0.30319.1 RTMRel
Microsoft .NET Framework
版本4.0.30319 RTMRel

安装的版本:Premium

Microsoft Office开发人员工具01021-532-2002102-70314
Microsoft Office开发人员工具

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代码分析拼写检查器01021-532-2002102-70314
Microsoft Visual Studio 2010代码分析拼写检查器

国际CorrectSpell&trade部分;拼写纠正系统© Lernout& 1993年Hauspie Speech Products N.V.保留所有权利.

美国遗产英语词典,第三版版权与复制; 1992年Houghton Mifflin公司.电子版由Lernout& Hauspie Speech Products N.V.保留所有权利.

Microsoft Visual Studio 2010团队资源管理器01021-532-2002102-70314
Microsoft Visual Studio 2010团队资源管理器

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

.NET Framework 4.0的Crystal Reports.
.NET Framework 4.0的Crystal Reports


Microsoft Visual Studio 2010 Premium的修补程序-ENU(KB2542054) KB2542054
此修补程序适用于Microsoft Visual Studio 2010 Premium-ENU.
如果您以后安装更新的Service Pack,此修补程序将被自动卸载.
有关更多信息,请访问http://support.microsoft.com/kb/2542054.

Microsoft Visual Studio 2010 SharePoint开发人员工具10.0.30319
Microsoft Visual Studio 2010 SharePoint开发人员工具

Microsoft Visual Studio 2010 Premium的安全更新-ENU(KB2251489) KB2251489
此安全更新适用于Microsoft Visual Studio 2010 Premium-ENU.
如果您以后安装更新的Service Pack,此安全更新将自动卸载.
有关更多信息,请访问http://support.microsoft.com/kb/2251489.

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.

预先感谢

Manjula

推荐答案

 

 

也许您可以尝试在应用程序程序集信息下启用/禁用程序集COM可见.您也可以在此处查看.

Maybe u can try to enable/disable assembly COM-visible under the application assembly information.You can also take a look here. 

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆