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

后端 未结 11 2658
青春惊慌失措
青春惊慌失措 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 15:58

    I've seen this when you have a web control in a page where there is invalid HTML. If your codebehind is trying to do something with the control, it won't be able to find it and will give you Object Reference... error at compile time. In my experience, it doesn't create a runtime error, and the project will build if the file in question is closed at the time of build. HTH, Good Luck!

提交回复
热议问题