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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=82193 --- 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: +OS Details: FC6 +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: Sys.Web +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: [2.0] Global.asax <object> with scope="session" not being instantiated + +Test case: +========== + +Global.asax: +<% @Application Language="C#" %> +<object id='Basket' class='System.Collections.Hashtable' scope='session' +runat='server' /> + +index.aspx: +<%@ Page Language="C#"%> +<script runat="server"> +void Page_Load(object o, EventArgs e) { + string s = Basket.ToString(); +} +</script> +<html> +<body> +Hello World. +</body> +</html> + +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) +[0x00000] + +This works with xsp, but not with xsp2. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
