[Mono-bugs] [Bug 82193][Nor] New - [2.0] Global.asax <object> with scope="session" not being instantiated

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jul 26 09:35:36 EDT 2007

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 juraj at hotfeet.ch.


--- shadow/82193	2007-07-26 09:35:36.000000000 -0400
+++ shadow/82193.tmp.12125	2007-07-26 09:35:36.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 82193
+Product: Mono: Class Libraries
+Version: 1.2
+OS Details: FC6
+Status: NEW   
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com                            
+ReportedBy: juraj at hotfeet.ch               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: [2.0] Global.asax <object> with scope="session" not being instantiated
+Test case:
+<% @Application Language="C#" %>
+<object id='Basket' class='System.Collections.Hashtable' scope='session'
+runat='server' />
+<%@ Page Language="C#"%>
+<script runat="server">
+void Page_Load(object o, EventArgs e) {
+        string s = Basket.ToString();
+Hello World.
+Request index.aspx.
+Expected result: "Hello World."
+Actual result:
+System.NullReferenceException: Object reference not set to an instance of
+an object
+  at ASP.index_aspx.get_Basket () [0x00000] 
+  at ASP.index_aspx.Page_Load (System.Object o, System.EventArgs e) [0x00000] 
+  at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000] 
+  at System.Web.UI.Control.LoadRecursive () [0x00000] 
+  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
+  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
+This works with xsp, but not with xsp2.

More information about the mono-bugs mailing list