How Can a Stack Trace Point to the Wrong Line (the “return” Statement) - 40 Lines Off

后端 未结 4 668
面向向阳花
面向向阳花 2020-12-08 15:27

I have twice now seen a NullReferenceException logged from a Production ASP.NET MVC 4 web application - and logged on the wrong line. Not wrong by a line or two

4条回答
  •  误落风尘
    2020-12-08 16:05

    Just a thought, but the one thing that I can think of is that perhaps there is a possibility that your build definition/configuration is pushing out an out of synch compiled version of your application dll(s) and this is why you see the discrepancy on your machine when you look up the line number from the stacktrace.

提交回复
热议问题