Tracking down intermittent 'Object reference not set to an instance of an object.' error on build

后端 未结 11 2594
青春惊慌失措
青春惊慌失措 2020-12-17 15:28

I could use some help trying to track down an intermittent error that I\'ve been having with our ASP.Net project for quite some time.

Intermittently when building th

11条回答
  •  隐瞒了意图╮
    2020-12-17 16:00

    An "Object reference not set to an instance of an object" is clearly a run-time error, not a compile-time error. So what that says to me is that Visual Studio is choking on something, which may not necessarily be in your code, or which something in your code is only indirectly causing.

    Next question I'd ask: Does this happen only in Visual Studio, or does the same thing show up when you build using MSBuild or CSC?

提交回复
热议问题