[Mono-bugs] [Bug 372897] New: [REGRESSION] Session not available in Page_Init

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 21 07:38:23 EDT 2008


           Summary: [REGRESSION] Session not available in Page_Init
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: juraj at hotfeet.ch
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Commit r98108* to HttpApplication.cs caused this regression. Revert that commit
and the test case does not throw anymore.

*) see

Test case:

<script runat="server">
void Page_Init(object o, EventArgs e) {
        Session["test"] = true;

- save above code as "index.aspx"
- start xsp2
- request http://localhost:8080/index.aspx

Actual result:
System.Web.HttpException: Session state can only be used when
enableSessionState is set to true, either in a configuration file or in the
Page directive.
  at System.Web.UI.Page.get_Session () [0x00000] 
  at ASP.index_aspx.Page_Init (System.Object o, System.EventArgs e) [0x00000] 
  at System.Web.UI.Control.OnInit (System.EventArgs e) [0x00000] 
  at System.Web.UI.Page.OnInit (System.EventArgs e) [0x00000] 
  at System.Web.UI.Control.InitRecursive (System.Web.UI.Control
namingContainer) [0x00000] 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)

Expected result:
No exception, just an empty page.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list