VS 2010, VSTO Excel 2010 Add-In publish fails
-
Thursday, December 02, 2010 1:04 PM
Hi everybody,
I created a new Add-In for Excel 2010 in Visual Studio 2010 Version 10.0.30319.1 RTMRel.
The project build without an error.
When I click on publish from the build menu and finish in the wizard I get the following error:
------ Publish started: Project: CFO Rules Manager Add-In, Configuration: Debug Any CPU ------
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(571,9): error MSB3169: An error occurred generating a bootstrapper: Unable to begin updating resource for bin\Debug\app.publish\setup.exe with error 80070002
Error: Cannot publish because a project failed to build.
========== Build: 3 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
Does anyone know what is wrong?
Please help.
Thanks,
Michael
All Replies
-
Thursday, December 02, 2010 2:45 PM
Hi Michael!
I was having the same issue. I can't publish my add-in from the context menu or from the project properties -> publish tab.
Your post motivated me to investigate a little more. I reflected microsoft build assemblies looking for the exact error, reviewed the build file, googled a lot, etc with no luck.
But I had some progress. I disabled a VS add-in, TypeMock, and now I can publish using the context menu. Can you check what add-ins you have installed in VS?
Hope this helps.
Regards,
Mauro
castagnasso.wordpress.com | If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful". -
Sunday, December 05, 2010 5:51 AM
Hi Mauro,
Thanks for your reply!
I checked Tools->Add In Manager and the list is empty there.
I have no idea now. :)
Michael
-
Thursday, February 03, 2011 3:40 PM
I have the same error.
------ Publish started: Project: SGHEFPImport, Configuration: Release Any CPU ------
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(571,9): error MSB3169: An error occurred generating a bootstrapper: Unable to begin updating resource for bin\Release\app.publish\setup.exe with error 80070002
Error: Cannot publish because a project failed to build.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
I've disabled all add-ins and restarted, and still can't get past this. Someone else had this posted in Connect for pre-RTM VS 2010, and it was closed because MS couldn't reproduce it.
-
Friday, September 09, 2011 9:14 AM
Hi
To continue the story - I am developping Windows Client projects using VS2010 - Visual Basic.
4 different projects, some has been published 25+ times - no problems.Suddenly - without any obvious reason, the publish fails with this error:
"Error 2 An error occurred generating a bootstrapper: Unable to finish updating resource for bin\Debug\app.publish\setup.exe with error 8007006E <projectname>"I think it is a major problem, that Microsoft will not accept the error, just because they cannot reproduce the error.
Another problem occurs now and then - also no solution:
The project references a *.dll, that is build in VS2010. The project builds OK - no problems.
Suddenly without no reason it fails - access to the *.dll is forbidden - when building in debug mode.
Here, publishing the solution works finemvh ravnø
-
Wednesday, September 28, 2011 4:31 PM
I had this error and this was the only hit I had searching for any further information. I managed to correct the problem quite simply (but I am not sure if this would work for anyone else):
- Tried to publish my VSTO add-in - it failed with the exact same error as the OP;
- Panicked - came here - realised my add-in is very complicated, multiple windows forms, etc.;
- Published another (simpler) VSTO add-in - it worked;
- Published the original VSTO add-in that wouldn't work previously... there was a LONG pause and then it worked!
- Proposed As Answer by Toxter Thursday, February 02, 2012 12:58 PM
-
Wednesday, January 18, 2012 8:59 PM
I too encountered this error, panicked, and found this thread.
None of the comments here helped me in my case. After trying everything here (and failing) I simply did Build->Clean Solution then everything worked after that. Strange.
-
Thursday, February 02, 2012 12:58 PM
I can confirm that this (publish another simpler VSTO add-in) approach helped me with same problem.I had this error and this was the only hit I had searching for any further information. I managed to correct the problem quite simply (but I am not sure if this would work for anyone else):
- Tried to publish my VSTO add-in - it failed with the exact same error as the OP;
- Panicked - came here - realised my add-in is very complicated, multiple windows forms, etc.;
- Published another (simpler) VSTO add-in - it worked;
- Published the original VSTO add-in that wouldn't work previously... there was a LONG pause and then it worked!
-
Monday, February 20, 2012 4:47 AM
In my Installer Class, I had removed:
base.Install(savedState); from public override void Install(IDictionary savedState)
and base.Uninstall(savedState; from public override Uninstall(IDictionary savedState) respectively.
Once I added them back in, publish runs without an issue.
Perhaps this is related? -
Wednesday, July 18, 2012 7:14 PM
Was running into this just recently, even when nothing had changed in my project.
I remembered I had just said ok to Windows turning on "Windows SmartScreen", which "can help keep your PC safer by warning you before running unrecognized apps and files downloaded from the Internet." I decided to turn this back off and suddenly, I can publish again!
SmartScreen settings are under Control Panel > System and Security > Action Center > Security for me.
-
Friday, December 21, 2012 2:14 PMI had the same issue. Try disabling "this application will check for updates" when publishing - worked for me.

