General failure building bootstrapper

微笑、不失礼 提交于 2019-11-28 02:53:52

问题


while doing the build of my dontnet 4.0 project setup i'm getting following errors

An error occurred generating a bootstrapper: Unable to finish updating resource for E:\project\Setup\Debug\setup.exe with error 8007006E    E:project\Setup\Setup.vdproj    Setup

General failure building bootstrapper   E:\project\Setup\Setup.vdproj   Setup

Unrecoverable build error   E:\project\\Setup\Setup.vdproj Setup

I am using dotnet framework 4 and MSVS 2010.


回答1:


This happens because The .NET framework version required by the setup project is different than the .NET framework version targeted by the application.

To change verify this:

  1. In Solution Explorer, click the Setup project.
  2. On the View menu, point to Editor, and then click Launch Conditions.
  3. Click .NET Framework.
  4. In the Properties window, change the Version property to the version of the .NET Framework that you want the Setup project to check for and install.

And also you need to Make sure that the Setup.exe program also checks for and installs the correct version of the .NET Framework.

Right click on the setup project -> Properties -> Prerequisites -> Select the correct ones.




回答2:


When I turn McAfee real-time scan off, it works. I spent 2 hours on figuring this out :(




回答3:


I googled a lot on this issue after trying all i just disabled my antivirus(NPAV) and this issue was solved.




回答4:


turning off mcafee real time scanning worked for me as well on Windows 8.1




回答5:


Here is yet another solution, this one is unlike the rest...

We recently added NTFS replication to our build tree root to provide some additional data redundancy and to begin to sync our old build machine with the new server. The NTFS replication caused some projects to fail with the exact same three error reported, and yet other projects work just fine. Set the replication on only run at night and the problem stopped occurring...

K




回答6:


I got the same error when I changed targeted framework to 4.0 but neglected to change prerequisits for click once from 3.5 to 4.0 as well. Fixing prerequisits resolved the problem.




回答7:


Instead of disabling the Anti-Virus, I would suggest to just create an exclusion for your Solution Folder. See documentation if you are using Windows Defender. Microsoft Support




回答8:


Thank you qwerty13579! How stupid of me, the solution is obvious. I have tried all sorts of things suggested over the internet, and even with the most recent version of VS Community 2017 (15.9.9), the bootstrapper failure pops up erratically, but with increasing frequency, to the point of frustration this past week. The principle: It doesn't succeed reliably, so it also doesn't FAIL reliably. The solution: Click the Publish Now button and watch the output panel. When it's that clear that it's failing, click the Publish Now button again immediately. Keep at it until it succeeds! Each round only takes a couple of seconds, much less time that it takes to re-build, take down anti-virus, and all that fancy stuff.

In my case, I traced the problem to an incorrectly dated setup.exe file in the bin\Release\app.publish folder of my application. When it fails, Publish Now creates an setup.exe that's two years earlier than the current day. When it succeeds, the setup.exe file is correctly dated.



来源:https://stackoverflow.com/questions/9891083/general-failure-building-bootstrapper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!