<p>I'm working on VS 2005 and something has gone wrong on my machine.  Suddenly, out of the blue, I can no longer build deployment files.
The build message is:</p>

<pre><code>ERROR: An error occurred generating a bootstrapper: Invalid syntax.
ERROR: General failure building bootstrapper
ERROR: Unrecoverable build error
</code></pre>

<p>A quick Google search brings up the last 2 lines, but nobody in cyberspace has ever reported the first message before.  (Hooray!  I'm first at SOMETHING on the 'net!)</p>

<p>Other machines in my office are able to do the build.
My machine has been able to do the build before.  I have no idea what changed that upset the delicate balance of things on my box.
I have also tried all the traditional rituals i.e. closing Visual Studio, blowing away all the bin and obj folders, rebooting, etc. to no avail.</p>

<p>For simplicity's sake, I created a little "Hello World" app with a deployment file.
Herewith the build output:</p>

<pre><code>------ Build started: Project: HelloWorld, Configuration: Debug Any CPU ------
HelloWorld -&gt; C:\Vault\Multi Client\Tests\HelloWorld\HelloWorld\bin\Debug\HelloWorld.exe
------ Starting pre-build validation for project 'HelloWorldSetup' ------
------ Pre-build validation for project 'HelloWorldSetup' completed ------
------ Build started: Project: HelloWorldSetup, Configuration: Debug ------
Building file 'C:\Vault\Multi Client\Tests\HelloWorld\HelloWorldSetup\Debug\HelloWorldSetup.msi'...
ERROR: An error occurred generating a bootstrapper: Invalid syntax.
ERROR: General failure building bootstrapper
ERROR: Unrecoverable build error
========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ==========
</code></pre>

<p>I am using:</p>

<ul>
<li>MS Visual Studio 2005 Version 8.0.50727.762 (SP .050727-7600) </li>
<li>.NET Framework Version 2.0.50727 </li>
<li>OS: Windows XP Pro</li>
</ul>

<p>Again, I have no idea what changed.  All I know is that one day everything was working fine; the next day I suddenly can't do any deployment builds at all (though all other projects still compile fine).</p>

<p>I posted <a href="http://social.msdn.microsoft.com/forums/en-US/vssetup/thread/240c82e9-1696-4618-846c-aaae21427a52/" rel="nofollow noreferrer">this on MSDN</a> about a month ago, and they don't seem to know what's going on, either.</p>

<p>Anyone have any idea what this is about?</p>

<hr>

<p>@Brad Wilson: Thanks, but if you read my original post, you'll see that I already did start an entire solution from scratch, and that didn't help.</p>

<hr>

<p>@deemer: I went through all the pain of uninstalling and reinstalling, even though I didn't have your recommended reading while waiting... and - Misery! - still the same error reappears.  It seems that my computer has somehow been branded as unsuitable for doing deployment builds ever again.</p>

<p>Does anyone have any idea where this "secret switch" might be?</p>

[{'answer_id': 69809, 'author': 'deemer', 'author_id': 11192, 'author_profile': 'https://Stackoverflow.com/users/11192', 'pm_score': 1, 'selected': False, 'text': "<p>If it doesn't build only on the one machine, then either you've managed to make that machine different, or the VS2005 install is corrupted.  If you take the error message at face-value, then the problem is probably the latter.  Try running the repair feature of the VS2005 installer, or failing that, reinstall VS2005.  Ender's Game is a good book to read while you're waiting :-|.</p>\n"}, {'answer_id': 69810, 'author': 'Brad Wilson', 'author_id': 1554, 'author_profile': 'https://Stackoverflow.com/users/1554', 'pm_score': 1, 'selected': False, 'text': '<p>Unfortunately, that error is the general catch-all error handler for setup projects. As a wild guess, I\'d say that maybe the setup project got corrupted somehow, which is causing the "Invalid Syntax" error.</p>\n\n<p>Try creating a new setup project and start by doing things one step at a time, and see if you can reproduce the problem (or, hopefully, avoid it altogether).</p>\n'}, {'answer_id': 126566, 'author': 'Shaul Behr', 'author_id': 7850, 'author_profile': 'https://Stackoverflow.com/users/7850', 'pm_score': 2, 'selected': True, 'text': '<p><strong>SOLUTION!</strong><br>\nThanks to Michael Bleifer of Microsoft support - I installed .NET 2.0 SP1, and the problem was solved!</p>\n'}, {'answer_id': 8539010, 'author': 'Adam Caviness', 'author_id': 9130, 'author_profile': 'https://Stackoverflow.com/users/9130', 'pm_score': 1, 'selected': False, 'text': "<p>I had a similar issue (<code>An error occurred generating a bootstrapper: Unable to finish updating resource for [YourAssemblyPath] with error 80070005</code>).  This error occurred on subsequent builds of the a setup project (first build after setup project creation always worked for me).  It turned out to be related to both my source control client(Sourcegear Vault) and MS Security Essentials.  I added Sourcegear's VaultGUIClient.exe as an Excluded Process in Security Essentials.</p>\n\n<hr>\n\n<ul>\n<li>Win 7 Ult x64 </li>\n<li>VS2010 Prem SP1 </li>\n<li>Sourcegear Vault 5.0.4 (18845) </li>\n<li>Security Essentials Version: 2.1.1116.0</li>\n</ul>\n"}, {'answer_id': 15834006, 'author': 'Rama', 'author_id': 1620537, 'author_profile': 'https://Stackoverflow.com/users/1620537', 'pm_score': 2, 'selected': False, 'text': '<p>Disable bootstrapping</p>\n\n<pre><code>In Solution Explorer, select the deployment project.\n\nOn the Project menu, click Properties.\n\nIn the Property Pages dialog box, expand the Configuration Properties node, and then select the Build property page.\n\nClick the Prerequisites button.\n\nIn the Prerequisites dialog box, clear the Create setup program to install prerequisite components check box, and then click OK. \n</code></pre>\n'}]
['https://Stackoverflow.com/questions/69766', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/7850/']