How did I get this NullReferenceException error here right after the constructor?

后端 未结 6 1612
难免孤独
难免孤独 2020-12-04 21:22

I\'ve had an asp.net website running live on our intranet for a couple of weeks now. I just got an email from my application_error emailer method with an unhandled exception

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 22:09

    It is almost certainly a threading issue - see this question and its accepted answer.

    Dictionary<>.Insert() will throw a NullReferenceException internally if the dictionary instance is modified from another thread during the insert operation.

提交回复
热议问题