验证时发生错误。 HRESULT ='80004005' [英] An error occurred while validating. HRESULT = '80004005'

查看:494
本文介绍了验证时发生错误。 HRESULT ='80004005'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试构建安装项目时出现此错误。我已经在网络和这些论坛上搜索过了。所有人都说这与参考问题有关。

我已确定哪个项目导致问题。此项目中的每个引用都已明确添加或作为另一个项目的依赖项添加。

Got this error when trying to build the Setup project.  I've hunted the web and these forums.  All say it has to do with a reference problem. 

I have determined which project is causing the problem.  Every reference in this project has either been added explicitly or as a dependent of another project.

推荐答案

经过更多调查和实验,我认为验证中存在错误。

我们有两个使用许多相同项目的解决方案。每个解决方案还包括两个特定于解决方案的项目。我们为这些特定的项目分配了相同的GUID来解决一些参考问题,或者这可能导致当前的问题。

其中一个解决方案的安装项目工作正常。
<当我们包含两个项目时,其他解决方案的安装项目会抛出HRESULT ='80004005'错误。
这两个项目参考了一个特定于解决方案的项目。
但是,第三个项目也引用了一个特定于解决方案的项目,不会导致验证错误。然而,这个项目是作为依赖项包含的。

我通过明确包括第三个项目进行了实验。 "验证时发生错误。 HRESULT ='80004005'"。

因此,验证中存在错误。奇怪的问题是,"为什么第一个解决方案的设置工作?"
After more investigation and experimentation, I think there is a bug in the validation.

We have two solutions that use many of the same projects.  Each solution also includes two projects that are specific to the solution.  We have assigned the same GUID to these specific projects which resolves some reference problems, or maybe this is causing the current problem.

The Setup project for one of these solutions works just fine.

The Setup project for the other solution throws the HRESULT = '80004005' error when we include two of the projects.  
These two projects reference one of the solution specific projects. 
BUT, a third project that also references one of the solution specific projects DOES NOT cause a validation error.  However this project is included as a dependency.

I experimented by explicitly including the third project.  "An error occurred while validating.  HRESULT = '80004005'". 

So, there is a bug in the validation.  And the weird question is, "why does Setup for the first solution work?"


这篇关于验证时发生错误。 HRESULT ='80004005'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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