MSBUILD ERROR - unknown exception (.NET 3.5)

The error we get is this...
msbuild.exe - Application Error : The exception unknown software exception (0xc0000409) occurred in the application at location 0x5cb79b4e.

Pretty generic error message and there is nothing in any of the event logs to help either. We have the MSBUILD calls in a loop for about 3000 projects. It bombs sporadically and for no known reason. Our build runs every day, and this error happens about 3 times a week.

This is an example call to MSBUILD...
 
C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe c:\source\sample.vbproj /t:rebuild /p:Configuration=Debug /p:Platform=AnyCPU

Open in new window

appsysdcoAsked:
Who is Participating?
 
crystal_towerCommented:
Get memory dump (you can define generation of dumps in windows settings) of msbuild crash - that is the first thing.
Install WinDbg tool
http://www.microsoft.com/whdc/devtools/debugging/installx86.Mspx
it is free for x64 and x32 bit based systems from miscrosoft.

From this tool, you can check what was the call stack, where it crashed. I would vote by myself for memory fragmentation problems. Some solutions: reboot more often (once per day), virtualize build machines (you could run them parallely with enough strong machine), or try to use memory defragmentation tools.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.