Visual Studio 2010 警告:未指定的错误(HRESULT 异常:0x80004005 (E_FAIL))
我看到很多关于此错误的帖子,但似乎都与我的情况无关。我有一个小型解决方案,包含 2 个 winforms 应用程序和一个数据访问 DLL。我使用的是 VS2010 SP1。
当我在 Vista Business 32 位 SP1 笔记本电脑上打开该解决方案时,一切正常。但是,当我在 Vista Ultimate 64 位 SP1 桌面上打开完全相同的解决方案时,我一打开该解决方案以及每次尝试构建该解决方案时都会收到上述错误。
解决方案中没有安装或使用不寻常的工具、组件或库,因此让我非常困惑。
任何建议将非常感激!
谢谢并致以亲切的问候。
I see quite a few posts on this error but none seem to relate to my situation. I have a small solution containing 2 winforms apps and a data access DLL. I am using VS2010 with SP1.
When I open the solution on my Vista Business 32 bit SP1 laptop it all works no problems. However when I open the exact same solution on my Vista Ultimate 64 bit SP1 desktop I get the above error as soon as I open the solution and each time I attempt to build the solution.
There are no unusual tools, components, or libraries installed or used in the solution so it has me very confused.
Any advice would be very much appreciated!
Thanks and kind regards.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否链接到任何本机/COM 库?
如果是这样,您必须将解决方案的构建目标从
AnyCpu
更改为x86
。不确定,但如果您在完全托管的解决方案中混合了 CPU 目标类型,也可能会发生这种情况......
Are you linking to any native/COM libraries?
If so, you must change the solution's build target from
AnyCpu
tox86
.Not sure, but this might also happen if you've mixed CPU target types in fully managed solutions...
就在不久前,当我开始运行负载测试时,出现以下错误对话框“未指定的错误(HRresult 的异常:0x800004005(E_FAIL))”。
解决方案:非常简单,只需关闭 VS 应用程序并进入解决方案资源管理器窗口选择项目并刷新两次即可。现在尝试同样的方法,效果会很好。
问候,
维维克M
Just some while back when i started runnning the load test te following error dialog box appears " unspecified error(Exception from HRresult : 0x800004005(E_FAIL)) ".
Resolution: Very simple just close the VS application and go the solution explorer window select the project and refresh two times. Now try the same it will work fine.
Regards,
VIVEK M
以管理员身份运行 Visual Studio,我遇到了同样的问题,当我以管理员身份运行 vs 时问题消失了。
run visual studio as administrator, i had same issue and when i run vs as administrator problem gone.