views:

2039

answers:

2

Some time ago I got this error when building ANY Visual Studio Deployment project.

"Unrecoverable build error"

I thought my VS installation was corrupted or I deleted some important files, but ...

+10  A: 

...all I had to do was.

Close down Visual Studio.

Start, Run or WIN+R, type cmd, OK.

regsvr32 "C:\Program Files\Common Files\Microsoft Shared\MSI Tools\mergemod.dll"
regsvr32 ole32.dll

Close Command Prompt.

Open up Visual Studio and try rebuilding your deployment project! It worked for me!

Jenko
pretty awesome answer dude! +1
baeltazor
I'm sure it must be obvious, but Microsoft's instructions don't include shutting down Visual Studio, which prevented them from working for me. Thank you!
Matthew Talbert
+1 Magic, How did you find the solution?
Shiraz Bhaiji
+2  A: 

We had this problem, and the solutions above didn't work for us. After several days of head-scratching, we found that the solution for us was to delete all the VSI*.TMP files from the local user temp folder at:

C:\Documents and Settings\username\Local Settings\Temp

In our case this went wrong on a Hudson build machine - Visual Studio seems to create temp files and not clean them up properly. Once it has created 65536 temp files (VSI0000.tmp to VSIFFFF.tmp) it can't create any more and MSI projects will fail to build.

Kudos to this blog post for the solution:

http://blog.richardadleta.com/2009/08/using-visual-studio-command-line.html

Bids
+1 Thanks, I never would have figured out that on my own