This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14264|Reply: 1

[ASP.NET] Unable to make the session state request to the session state server

[Copy link]
Posted on 4/13/2016 3:26:49 PM | | |
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.



StateServer session management
Set the mode property to StateServer, which stores the session data in a separate memory buffer and runs it on a separate machine
Windows services to control this buffer. The full name of the state service is "ASP.NET State Service" (aspnet_state.exe),
It is configured by the stateConnectionString property in the Web.config file. This attribute specifies the server on which the service is located, and what to monitor
Ports:
<sessionState mode="StateServer"
stateConnectionString="tcpip=myserver:42424"
cookieless="false" timeout="20" />



Error causes:
ASP.NET State Service service is not started.
Solution:
Administrative Tools -> Services -> make ASP.NET State Service started.
It is recommended to set the Startup type to Automatic(Delayed Start)


cmd admin command to start:netsh winsock reset








Previous:C# Various Input Format Validation
Next:asp.net get the server mac address
 Landlord| Posted on 4/13/2016 3:30:09 PM |
The cmd command should be net start aspnet_state
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com