ASP.NET State Service

From: mg (mg_at_theworld.com)
Date: 01/11/04

  • Next message: Stefan Falk: "Re: Unable to read Active Directory data from a web part - Unknown error (0x80005000)"
    Date: Sun, 11 Jan 2004 10:57:32 -0800
    
    

    I'm trying to store session state in a Windows Service.

    I start the ASP.NET State Service and modify the
    Web.Config file to include

       <sessionState
          mode="StateServer"
          stateConnectionString="tcpip=127.0.0.1:42424"
          timeout="20"
        />

    But I get the following error message: Unable to make the
    session state request to the session state server. Please
    ensure that the ASP.NET State service is started and that
    the client and server ports are the same.

    My server port is 42424. But, how do I set the client port?

    My app consists of the following two lines in Page_Load

    string arg = "http://unixbox:8888/user.jsp?ID=" +
    Session.SessionID.ToString();
    Response.Redirect(arg);


  • Next message: Stefan Falk: "Re: Unable to read Active Directory data from a web part - Unknown error (0x80005000)"

    Relevant Pages

    • Losing Session State on postback event
      ... I've got the ASP.NET state service started - the separate process for state management: ... StateServer mode stores session state in a process, ... Object reference not set to an instance of an object. ... ASP.ctrlinit_ctrlinit12b_aspx.Page_Init(Object sender, EventArgs e) ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Is there a "State Server"
      ... difference have you found between using the state service on another machine ... > this ais a mode where we store sessions on a dedicated server. ... >> you need to maintain session state in a web server farm. ...
      (microsoft.public.dotnet.framework.aspnet)