HRESULT =“80004005”在 Visual Studio 2008 安装项目中

发布于 2024-09-17 05:56:40 字数 564 浏览 4 评论 0原文

当我尝试构建我的安装项目时,我收到以下错误:“验证时发生错误。HRESULT = '80004005'”(并且 Microsoft 因清晰度而赢得了奖项。)

我在 Google 上发现一小群开发人员已经同样的问题。实际上,错误应该是:“在您的项目之一中找不到参考。”每个人都说明(甚至在 StackOverflow 上)如何找到引用损坏的项目:

  1. 从安装项目中删除所有输出。
  2. 单独添加每个项目输出,直到看到错误出现。

我这样做,发现我的主可执行项目和主类库项目出现 80004005 错误。由于主可执行项目引用主类库项目,因此我认为问题出在主类库项目中。

一旦找到该项目,人们就会说删除所有引用,然后重新添加它们(这可以修复任何似乎是此错误主要原因的路径问题)。事实上,我已经对解决方案中的所有项目执行了此操作,只是为了更好地衡量。我仍然收到 80004005 错误。

我用谷歌搜索了大约五个小时,没有找到任何其他建议的解决方案。我几乎要重新制作此解决方案中的所有 7 个项目,这将花费我一个小时才能完成,并且不能保证结果。

在我开始向众神献祭可爱的小生物之前,欢迎提出建议。

When I try to build my setup project, I get the following error: "An error occurred while validating. HRESULT = '80004005'" (And Microsoft wins an award to clarity.)

I Google to find that a small army of developers have had the same problem. Really the error should read: "Could not find a reference in one of your projects." Everyone states (even on StackOverflow) how to find the project with the broken reference:

  1. Remove all outputs from your setup project.
  2. Add each project output individually until you see the error appear.

I do that, find the 80004005 error appears for my main executable project and the main class library project. Since the main executable project references the main class library project, I assume the issue is in the main class library project.

Once you find the project, people say to remove all references, and re-add them (this fixes any pathing issues that seem to be the primary cause of this error). In fact, I've done it to all projects in the solution, just for good measure. I still get the 80004005 error.

I have Googled for about five hours, I have not found any other suggested solutions. I'm almost down to remaking all 7 projects in this solution, which will take me a hours to do, and does not guarantee a result.

Suggestions are welcome before I begin sacrificing a small cuddly creatures to the Gods.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

陪你到最终 2024-09-24 05:56:40

已知在多个解决方案中使用相同的项目文件会导致您所观察到的问题。解决方法是重组您的解决方案或创建单独的项目文件。

该问题记录在此 Connect 项目中:

验证时发生错误。 HRESULT = '80004005'

Using the same project file in more than one solution is known to cause the problem you are observing. The workaround would be to either restructure your solutions or to create separate project files.

The issue is documented in this Connect item:

An error occurred while validating. HRESULT = '80004005'

阪姬 2024-09-24 05:56:40

我遇到了同样的问题(错误:HRESULT = '80004005'),这是解决方案。

情况是:
我正在使用项目“x”输出进行部署。项目“x”构建良好,但同一项目的部署项目失败。

没有。我的部署项目中包含的其他项目。没有直接的方法来识别故障原因。识别失败原因的唯一方法是删除项目并查看部署项目是否正在构建。

通过这个你可以识别出有问题的项目。

解决方案是:
没有。项目包含在项目“x”引用中,但所有项目均未包含在解决方案中。

我已经包含了所有引用的项目和构建良好的部署项目的参考。

I experienced the same problem (Error: HRESULT = '80004005') and here is the solution.

Situation was:
I was using project "x" output for deployment. Project "x" was building fine, but deployment project was failing for same project.

There were no. of other projects included in my deployment project. There is no straight way to identify the failure cause. Only method to identify the failure cause is remove the project and see if deployment project is building or not.

By this you can identify the troublesome project.

Solution is:
There were no. of project included in project "x" references, but all the projects was not included in solution.

I have included reference of all referenced project and deployment project built fine.

逆光飞翔i 2024-09-24 05:56:40

遇到了同样的(无法解决的)问题,Yerg 的技巧(只是添加文件而不是项目输出)拯救了我的*。至少,安装项目构建并且安装程序在我的本地系统上运行。仍有待在客户的系统上进行测试。

非常感谢 Yerg。

Had the same (unsolvable) problem, and Yerg's trick (just adding the files instead of the project output) saved my *. At least, the setup project builds and the installer works on my local system. Still to be tested on a customer's system..

A big thanks to Yerg.

一向肩并 2024-09-24 05:56:40

这个答案为我解决了这个问题

我也在慢慢地将我的所有安装项目迁移到 WIX。这似乎是最好的解决方案。

This answer fixed this issue for me

I'm also slowly migrating all of my install projects to WIX. That seems like the best solution.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文