473,396 Members | 2,108 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ASP.NET State Service

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);
Nov 18 '05 #1
2 2166
>-----Original Message-----
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);
.


Hi,

The error that you are getting is because your State
Server is not enabled. You have to goto Administrative
Tools > Computer Management > Services and Applications >
Services and start the ASP.NET State Service. Only then
will you be able to store data in the ASP.NET State
Session.
NOTE: You have to serialize any data before you store in
the ASP.NET State Server.

Regards,

RAMADU
Nov 18 '05 #2
mg
>> because your State Server is not enabled
serialize any data before you store in the ASP.NET how do I set the client
port? State Server.

How is that done?

Also, how do I set the client port as directed by the
error message?

Actually, it is.

-----Original Message-----
-----Original Message-----
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

thesession state request to the session state server. Pleaseensure that the ASP.NET State service is started and thatthe client and server ports are the same.

My server port is 42424. But, >>
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);
.


Hi,

The error that you are getting is because your State
Server is not enabled. You have to goto Administrative
Tools > Computer Management > Services and Applications >
Services and start the ASP.NET State Service. Only then
will you be able to store data in the ASP.NET State
Session.
NOTE: You have to serialize any data before you store in
the ASP.NET State Server.

Regards,

RAMADU
.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nhi Lam | last post by:
Hi, I understand that there are 3 modes in which I can configure the SessionStateModule. What I need is an out of process Session State store with fail over support. The "SQL Server Mode" seems...
4
by: Jeff | last post by:
We have multiple ASP.Net web apps in development. As a standard we are looking to go with SQL Server to hold state information. Can we have the multiple apps all point to a single State DB? Or...
0
by: Maciek | last post by:
Hi When I set Session state mode to StateServer (IIS 6.0; windows2003; .NET 2.0) in my application, I have recived this message:...
5
by: Stu Carter | last post by:
Hi, ENV: Windows 2003 Server SP1 (+all updates), VS 2003, .Net 1.1 SP1 We've got an ASP.Net web application using State Service. All is fine until we tried to use the app through a virtual...
1
by: DwC | last post by:
Hey All, I have a web service that maintains it's own state so once the user has successfully called the Login method a logged in flag is set in session. Each method checks that the user is...
0
by: none | last post by:
Hi, I've got a problem with losing session state in ASP.NET version 2. It does it intermittently - sometimes it tanks - and sometimes it works OK. I've got the ASP.NET state service started...
11
by: Joseph Geretz | last post by:
I've been looking at two approaches for the maintenance of Session state for a Web Service application. One approach uses the old familiar Session object which I've used in the past for Web...
4
weaknessforcats
by: weaknessforcats | last post by:
Design Patterns – State Often computer software operates based on a condition called a state. These states traditionally have been implemented using a switch statement. The cases of the switch...
5
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
Hi All, I am using asp.net session state service to store session. The concurrent online user will be almost 2000. Could asp.net session state service afford this? Is there any limitation...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.