[Mono-bugs] [Bug 66089][Nor] New - Using Session in AcquireRequestState prevents static files from beeing served in ASP.NET

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 16 Sep 2004 09:27:52 -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 jsinger@eggmouse.com.

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

--- shadow/66089	2004-09-16 09:27:52.000000000 -0400
+++ shadow/66089.tmp.2833	2004-09-16 09:27:52.000000000 -0400
@@ -0,0 +1,76 @@
+Bug#: 66089
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jsinger@eggmouse.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Using Session in AcquireRequestState prevents static files from beeing served in ASP.NET
+
+Description of Problem:
+
+Using the Session object in the AcquireRequestState event
+(Application_AcquireRequestState in global.asax) prevents static files from
+beeing served correctly. Trying to request a static file results in a
+"Failed to get session object" HttpException. Requests to dynamic files
+(aspx) are served correctly.
+
+Steps to reproduce the problem:
+1. Create a new WebApp with the following files:
+global.asax
+-- snip --
+<%@ Import Namespace="System.Web.SessionState" %>
+<SCRIPT language="C#" runat="server">
+protected void Application_AcquireRequestState(object sender, EventArgs e)
+{ object test = this.Session; }
+</SCRIPT>
+-- snip --
+
+index.aspx
+-- snip --
+<%@ Page Language="C#"%>
+<html>
+   <body>
+       <center>
+           <% for (int i=0; i <8; i++) { %>
+              <font size="<%=i%>"> Welcome to ASP.NET </font> <br>
+           <% }%>
+       </center>
+   </body>
+</html>
+-- snip --
+
+test.html
+-- snip --
+<html>
+   <body>
+       <center>Welcome to ASP.NET</center>
+   </body>
+</html>
+-- snip --
+
+2. Try to request index.aspx - this should work as expected
+3. Try to request test.html - this fails
+
+Actual Results:
+Failed to get session object
+Description: Error processing request.
+
+Error Message: HTTP 500. Failed to get session object 
+
+Expected Results:
+Welcome to ASP.NET
+
+How often does this happen? 
+Everytime
+
+Additional Information: