[Mono-bugs] [Bug 81579][Blo] New - Sessions not working in webservices
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu May 10 06:31:11 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 josef.semmler at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=81579
--- shadow/81579 2007-05-10 06:31:11.000000000 -0400
+++ shadow/81579.tmp.18884 2007-05-10 06:31:11.000000000 -0400
@@ -0,0 +1,81 @@
+Bug#: 81579
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+OS Details: Centos 4.0/Windows XP SP2
+Status: NEW
+Resolution:
+Severity: 002 Two hours
+Priority: Blocker
+Component: Sys.Web.Services
+AssignedTo: atsushi at ximian.com
+ReportedBy: josef.semmler at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Sessions not working in webservices
+
+If you try to use sessions with xsp2 webservices do not work, you get a
+timeout. If you start the same webservice with xsp, it works.
+
+Here is a sample service with which this can be reproduced:
+
+
+<%@ WebService Language="c#" Class="BugTest.SessionBug" %>
+
+using System;
+using System.Web.Services;
+using System.Web.Services.Protocols;
+
+namespace BugTest
+{
+ public class SessionBug : System.Web.Services.WebService
+ {
+ [WebMethod(EnableSession = true)]
+ public string Echo (string a)
+ {
+ // int b = 0;
+ // if ( Session["value"] != null ) {
+ //Int16 i = ((Int16)Session["value"]);
+ //b = i;
+
+ return a;
+ }
+
+ }
+}
+
+// Save as SessionBug.asmx
+// start it with xsp and access it ... it will work
+// start it with xsp2 and access it ... it will hang, ending up with http 500
+
+Actual Results:
+
+an exception with xsp2
+
+Expected Results:
+
+same behavior as with xsp ... the session should work !
+
+How often does this happen?
+
+always.
+
+Additional Information:
+
+This is what you sometimes get back:
+System.NullReferenceException: Object reference not set to an instance of
+an object<br/> at
+ System.Web.SessionState.SessionStateModule.CreateContainer
+(System.String sessionId,
+ System.Web.SessionState.SessionStateStoreData data, Boolean isNew,
+Boolean isReadOnly)
+ [0x00000] <br /> at
+System.Web.SessionState.SessionStateModule.OnAcquireRequestState (
+ System.Object o, System.EventArgs args) [0x00000] <br /> at (wrapper
+delegate-invoke)
+ System.MulticastDelegate:invoke_void_object_EventArgs
+(object,System.EventArgs)<br /> at
+ System.Web.HttpApplication+<>c__CompilerGenerated5.MoveNext () [0x00000]
+Sometimes i just get a timeout ...
More information about the mono-bugs
mailing list