ERROR: Unrecoverable build error when building Setup project in VS.Net 2005
- Hello, Somebody, please help me out,
I got "Unrecoverable build error" when building setup project. I try the solution in http://support.microsoft.com/kb/329214/EN-US/ but did not work out. I am totally stuck.
Please, your any information, solution will be very much appreciated.
Thanks!
Yi-an
Answers
- after try http://support.microsoft.com/kb/329214/EN-US/,
run "regsvr32 ole32.dll".
I did many try and so I can't tell what is the right one.:-)
All Replies
- Reboot, open your project again, got to Build->Clean<app name>
Then try to rebuild it again.
Dustin.
- Dustin:
Thanks for response. I did as what you suggested but it did not work. Me too.
I've written a simple project in vb2005 and when i try to build a setup project this error is always returned.
I did as MS suggests with no results..... help!- I finally solved the problem by getting rid of everything relative to .net earlier version and then reinstalling 2005 .net.
Damn!
I've just reinstalled VS2005, after removing everything about it and .NET Framewok 2.0 and 1.1.
But the problem still appears. I don't know what to do.
Creating an empty project setup it succesfully builds, but adding the primary output from the project i want to distribuite, the build process always fails.
I hope for suggestions from MS.
I don't think about reinstalling Windows. It may be the solution, but i'm afraid of the problem still remains.
Skynet- after try http://support.microsoft.com/kb/329214/EN-US/,
run "regsvr32 ole32.dll".
I did many try and so I can't tell what is the right one.:-) - Thank You!!!!!!!!
Setup built!
It works right! YES, YES, YES !!!
After trying everything else for at least 3 hours, this finally worked.
Thank you very much.
- THANK YOU !!!! THANK YOU start button > run > cmd > regsvr32 "ole32.dll" Hit enter. YES SAVED ME HOURS
- It Worked? Thanks this has been bugging me for weeks
- works for me too
Thanks a lot buddy. I had wasted my evening and though i would have to reinstall windows before i wll get this thing workable.. but u saved a lot of time ...
cheers
sambhav
- THANK YOU, THANK YOU, THANK YOU!!!!

This worked for me:
Mergemod.dll is not registered correctly
To resolve this problem, register Mergemod.dll again. Typically, Mergemod.dll is located in the following folder:C:\Program Files\Common Files\Microsoft Shared\MSI Tools\Mergemod.dllTo register the Mergemod.dll, type the following command at a command prompt, and then press ENTER:
regsvr32 "C:\Program Files\Common Files\Microsoft Shared\MSI Tools\mergemod.dll"- Thank You Yian
your solution works just gr8!!! - unfortunately nothing worked for me. still getting the same error. tryed everything.
i do get the error even when i'am trying to build an empty project.
I registered the mergemod.dll
the ole32.dll
changed the folder names
uninstalled and reinstalled vsto
checked the registry settings....and still it isnt working....probably my last option is the trash :(
any additional ideas Just another datapoint, I started getting this error today (it started happening after I had accidentally deleted a file that was included in the setup). regsrv32 "ole32.dll" fixed it.
Just curious...
Why does registering ole32.dll that fix the problem? And how did you figure that out?
Worked for me just fine though - thanks a lot!
R
Thank YOU !!! YIAN
It's WORK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Grazie
- We have started getting this error too, but surprisingly only when we build the project using command-line:
"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.com" SvtClient.sln /Build Release /Project SetupSVT\SetupSVT.vdproj
If I open up the IDE and build it, it builds just fine! I've tried all solutions suggested in this thread, to no avail. Any other ideas anyone?? Can you give more detail ? run > cmd .... did not work what of the KB did you try???
Yep, worked for me. Thank you, don't think I'd ever have got there!
(Note for others: I needed to restart Visual Studio as well, but after that started working fine)
- Great, it really works! Maybe KB article should be updated for VS2005?
Thank you very much !
Ameya Barve wrote: We have started getting this error too, but surprisingly only when we build the project using command-line:
"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.com" SvtClient.sln /Build Release /Project SetupSVT\SetupSVT.vdproj
If I open up the IDE and build it, it builds just fine! I've tried all solutions suggested in this thread, to no avail. Any other ideas anyone??
Ok, the problem is getting worse; now we can no longer build even using the IDE, we get the "Unrecoverable build error" in the Error List window.
Here's what I've tried so far:
- regsvr ole32.dll
- regsvr C:\Program Files\Common Files\Microsoft Shared\MSI Tools\mergemod.dll
- Ensured the registry values as per http://support.microsoft.com/default.aspx/kb/329214/EN-US/ are set correctly
- thank you
- I am having the exact problem you are describing - command line fails, VS user interface fails also. However, other setup projects are building OK just not our very large one. Also the large project builds on other machines. I have tried all the remedies recommended here without luck.
If you solve this problem please post a message here. I'll do the same. - I finally got my project to build. In addition to all remedies mentioned here I also got the latest updates from MS for XP that did include a few .net items but nothing seemingly relevant. Still this step finally got the setup project to build without an error.
'regsvr32 ole32.dll' did the trick.
Thank you !
- Thank you very much dude.
Does anybody knows why this error occours?
Yian wrote: after try http://support.microsoft.com/kb/329214/EN-US/,
run "regsvr32 ole32.dll".
I did many try and so I can't tell what is the right one.:-) Thanks a lot for your help
- I love the Internet!!! - Running regsvr32 ole32.dll and it works :-)
I'd like to post a great thanks to all of you. I tried lots of things without success until I found your helpful suggestions.- Thank you
it worked Problem still there in VS 2008
Apparently Microsoft needs to alert folks to this problem and ADD the comment about registering OLE32.dll. I have VS2005 and VS2008. I have not tried to create a Setup/deployment with VS2005, but I have with VS 2008.
After doing everything in: http://support.microsoft.com/kb/329214/EN-US/
It still did not work UNTIL I did -- run "regsvr32 ole32.dll" as suggested by Yian above.- I tried both the suggested remedy from the kb article and registering ole32.dll and still did not have success. I run devenv from the command line from my continuous integration server and one day it just started failing. No code had changed, it just started failing.
I searched all over and finally found someone in the same position that said they fixed it by deleting the user profile for the account that runs the build. I tried this today and it totally fixed the issue. Looks like MS doesn't cleanup the temp folders when running and after thousands of builds it can no longer scratch temp data to disk. I found one directory with over 65055 directories in it. lol Needless to say deleting the user profile directory took almost and hour.
Hope this helps someone out there.
- Thanks,
regsvr32 ole32.dll solved the problem. - I had backup software that was locking access to one of the temporary files. Disabling the backup service solved the problem.


