ASP.NET State Service

M

mg

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top