MSBUILD ERROR - unknown exception (.NET 3.5)

Posted on 2009-04-16
Medium Priority
Last Modified: 2013-11-08
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

Question by:appsysdco
1 Comment

Accepted Solution

crystal_tower earned 2000 total points
ID: 24364804
Get memory dump (you can define generation of dumps in windows settings) of msbuild crash - that is the first thing.
Install WinDbg tool
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.


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses
Course of the Month12 days, 15 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question