"Object reference not set to an instance of an object": why can't .NET show more details?
- by Simon Chadwick
"Object reference not set to an instance of an object"
This is probably one of the most common run-time errors in .NET. Although the System.Exception has a stack trace, why does the exception not also show the name of the object reference field, or at least its type?
Over the course of a year I spend hours sifting through stack traces (often in…