See the question and my original answer on StackOverflow

You could try a new component developed by the Microsoft CLR team: ClrMD: .NET Crash Dump and Live Process Inspection

ClrMD is a set of advanced APIs for programmatically inspecting a crash dump of a .NET program much in the same way as the SOS Debugging Extensions (SOS). It allows you to write automated crash analysis for your applications and automate many common debugger tasks.