Why would a stack trace show \"line 0\", but only for one frame in the stack trace?
eg.
... at System.Data.SqlClient.SqlCommand.Exec
This was indeed down the the inlining of them method as Eric suggested.
I managed to reproduce the original error locally, but only when compiling in a release build. As I had the PDBs, I could step through the code and find the problem.