Randomly an ASP/ASP.MVC application running on mono throws the following exception:
System.NullReferenceException: Object reference not set to an instance of an object
at System.Web.SessionState.SessionInProcHandler.GetItemInternal (System.Web.HttpContext context, System.String id, System.Boolean& locked, System.TimeSpan& lockAge, System.Object& lockId, System.Web.SessionState.SessionStateActions& actions, Boolean exclusive) [0x00054] in mono-2.10.2/mcs/class/System.Web/System.Web.SessionState_2.0/SessionInProcHandler.cs:166
This bug is related (but not the same) to: https://bugzilla.novell.com/show_bug.cgi?id=669807
From looking at the code looks like the session item object has been disposed before entering GetItemInternal.. and as there is a missing item.rwlock == null check, however due to the complexity of the code I'm not sure which should be the optimal fix (assume already locked? to
Created attachment 490 [details]
I have the same problem, but I've managed to create some kind of test case that reproduces it quickly.
Just start it and click the button several times.
Oh, sorry, this "test case" is already exists in the bug report from your link. I've not seen it, because I get here when tried to report the same bug and saw it in possible duplicates list.