[Mono-bugs] [Bug 669807] Abandon session then redirect goes boom
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Mar 21 21:47:15 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=669807
https://bugzilla.novell.com/show_bug.cgi?id=669807#c4
Angel Colmenares <angel.ignacio.colmenares at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |angel.ignacio.colmenares at gm
| |ail.com
--- Comment #4 from Angel Colmenares <angel.ignacio.colmenares at gmail.com> 2011-03-22 01:47:14 UTC ---
hi,
i'm using mono 2.10.1 and i'm getting same problem
after Session.Abandon() webapp does not work !!!
here is my code:
Default.aspx:
<%@ Page Language="C#" Inherits="mono2101.Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head runat="server">
<title>Default</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Button id="button1" runat="server" Text="Click me!"
OnClick="button1Clicked" Enabled="false" />
<asp:Button id="button2" runat="server" Text="Abandon !!!"
OnClick="button2Clicked" />
</form>
</body>
</html>
Default.aspx.cs:
using System;
using System.Web;
using System.Web.UI;
namespace mono2101
{
public partial class Default : System.Web.UI.Page
{
public virtual void button1Clicked (object sender, EventArgs args)
{
button1.Text = "Clicked me one more time";
}
public virtual void button2Clicked (object sender, EventArgs args)
{
button1.Enabled=true;
button1.Text= "Click me twice!!!";
Session.Abandon();
}
}
}
----------------------------------------------------------------
message:
Server Error in '/' Application
Object reference not set to an instance of an object
Description: HTTP 500. Error processing request.
Stack Trace:
System.NullReferenceException: Object reference not set to an instance of an
object
at System.Web.SessionState.SessionInProcHandler.GetItemInternal
(System.Web.HttpContext context, System.String id, System.Boolean& locked,
System.TimeSpan& lockAge, System.Object& lockId,
System.Web.SessionState.SessionStateActions& actions, Boolean exclusive)
[0x00054] in
/home/angel/Projects/librerias/mono-2.10.1/mono-2.10.1/mcs/class/System.Web/System.Web.SessionState_2.0/SessionInProcHandler.cs:166
Version information: Mono Runtime Version: 2.10.1 (tarball dom mar 13 14:08:47
COT 2011); ASP.NET Version: 2.0.50727.1433
--
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