[Mono-bugs] [Bug 42672][Cri] New - Session object does not store values

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 9 May 2003 11:17:05 -0400 (EDT)


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 abel@uajms.edu.bo.

http://bugzilla.ximian.com/show_bug.cgi?id=42672

--- shadow/42672	Fri May  9 11:17:05 2003
+++ shadow/42672.tmp.1937	Fri May  9 11:17:05 2003
@@ -0,0 +1,77 @@
+Bug#: 42672
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Debian Woody
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: abel@uajms.edu.bo               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Session object does not store values
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+The Session Object does not store values.
+
+Steps to reproduce the problem:
+1. To create a file .aspx
+   C#  
+   <Sript runat=server>
+     void Click(Object o, EventArgs e){
+       Session["__login"] = Login.Text;
+       String s = (String) Session["__login"];
+       Response.Write(s);
+     }
+   
+   XSP
+   <...>
+    ...
+    <asp:EditBox id="Login" Text="prueba Session" runat="server"/>
+    <asp:Button id="btn" Text="Mostrar" OnClick="Click" runat="server"/>
+    ...
+   <...>
+
+2. Compile.
+ 
+
+Actual Results:
+
+Error
+Description: Error processing request.
+
+Error Message:
+
+Stack Trace:
+System.NullReferenceException: A null value was found where an object
+instance was required
+in <0x0002f> 00 ASP.prueba_navegador_dll_aspx:Click (object,System.EventArgs)
+in <0x00067> 01 System.MulticastDelegate:invoke_void_object_EventArgs
+(object,System.EventArgs)
+in <0x000ac> 00 System.Web.UI.WebControls.Button:OnClick (System.EventArgs)
+in <0x0005a> 00
+System.Web.UI.WebControls.Button:System.Web.UI.IPostBackEventHandler.RaisePostBackEvent
+(string)
+in <0x00020> 00 System.Web.UI.Page:RaisePostBackEvent
+(System.Web.UI.IPostBackEventHandler,string)
+in <0x00051> 00 System.Web.UI.Page:RaisePostBackEvents ()
+in <0x0016c> 00 System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
+in <0x001b6> 00 .ExecuteHandlerState:Execute ()
+in <0x0005e> 00 .StateMachine:ExecuteState (IStateHandler,bool&)
+
+
+Expected Results:
+
+   prueba Session
+
+How often does this happen? 
+  always
+
+Additional Information: