Click here to Skip to main content
15,896,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have the below error :when I am using the session state

<sessionState   mode="StateServer" stateConnectionString ="tcpip=127.0.0.1:42424"   cookieless="false" timeout="1000"/>



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. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection. If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name
how it is removed please tell me.
Posted
Updated 28-Apr-11 1:03am
v2
Comments
NuttingCDEF 28-Apr-11 7:07am    
First can I check the basics - you definitely do want to use the StateServer mode for handling session state, rather than InProc (the default) or any other mode. The obvious reasons for not using InProc are if you want to maintain session state even if the web server process is reset or restarted, you need to maintain session state for large number of concurrent sessions or if you have multiple servers that need to share session state. What session state handling behaviour are you trying to achieve?

Second, your web.config entry already has the server set to '127.0.0.1', so that part of the error message shouldn't be a problem.

Third, there is an extra space after stateConnectionString - I haven't tested it, but it is conceivable that that might cause the problem.

Fourth, what have you done to check that the ASP.NET state service is installed and running on your web server?

See also http://msdn.microsoft.com/en-us/library/ms178586.aspx for details of session state options in ASP.NET

To solve this problem

Goto Start

Type
C++
services.msc
in Run
then services window opens

after that

right click on 'Asp.net State Service' and click on start

Hope this helps
 
Share this answer
 
Comments
NuttingCDEF 28-Apr-11 7:09am    
If this solves the problem and you want to keep the service running, double-click it and set the startup type to Automatic rather than Manual.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900