[Mono-bugs] [Bug 77884][Nor] Changed - Session not available in AcquireRequestState

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Apr 11 00:56:35 EDT 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gonzalo at ximian.com.


--- shadow/77884	2006-03-28 02:39:42.000000000 -0500
+++ shadow/77884.tmp.16826	2006-04-11 00:56:35.000000000 -0400
@@ -1,12 +1,12 @@
 Bug#: 77884
 Product: Mono: Class Libraries
 Version: 1.1
 OS: unknown
 OS Details: 
-Status: NEW   
+Status: ASSIGNED   
 Severity: Unknown
 Priority: Normal
 Component: Sys.Web
 AssignedTo: gonzalo at ximian.com                            
 ReportedBy: informatique.internet at fiducial.fr               
@@ -48,6 +48,24 @@
 MS.NET acquire the session state correctly...
 ------- Additional Comments From informatique.internet at fiducial.fr  2006-03-28 02:39 -------
 This bug is an important one, because many people use
 AcquireRequestState in global.asax.cs to initialize globalisation
 (ressources) parameters in web applications...
+------- Additional Comments From gonzalo at ximian.com  2006-04-11 00:56 -------
+I have a fix for this problem.
+The test that I will attach after this comment shows that the Session
+object is not available if you use AddOnAcquireRequestStateAsync() but
+it is if you use the synchronous version.
+That means that on MS, SessionStateModule is using
+AddOnAcquireRequestStateAsync(), which makes it be invoked before the
+sync. delegate.
+I've also seen that this is true for other events that have an async.
+version. I'll commit a final patch tomorrow (today?).

More information about the mono-bugs mailing list