Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to make the session state request to the session state server . error code=0x80072749

I am seeing an error on my production machine. The application is working fine for a while then suddenly it's not responding and I fix it by restarting IIS.

StateServer is running fine in Services and the mode is automatic.

The string below is what I'm using in web.config:

<sessionState cookieless="UseCookies" mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" stateNetworkTimeout="60" timeout="2" useHostingIdentity="false" compressionEnabled="false">

Unable to make the session state request to the session state server. Details: last phase='Sending request to the state server', error code=0x80072749, size of outgoing data=0

HttpException:

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.

like image 981
Vinod Saini Avatar asked Feb 03 '26 11:02

Vinod Saini


1 Answers

Go to services, start ASP.NET State service. Then check the key is true :

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection
like image 111
Rai Vu Avatar answered Feb 06 '26 01:02

Rai Vu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!