ASP.NET application throws System.NullReferenceException from Session.Remove implementation
问题 We are getting random System.NullReferenceException in our ASP.NET web application. We are using inproc session state. Stacktrace: System.NullReferenceException: Object reference not set to an instance of an object. at System.Collections.Specialized.NameObjectCollectionBase.BaseRemove(String name) at System.Web.SessionState.SessionStateItemCollection.Remove(String name) at System.Web.SessionState.HttpSessionStateContainer.Remove(String name) at System.Web.UI.SessionPageStatePersister.Save()