MSBUILD ERROR - unknown exception (.NET 3.5)

Posted on 2009-04-16
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
    LVL 3

    Accepted Solution

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now