Session state requests cannot be made to the session-state server. Make sure that the ASP. NET State Service (ASP) is started and that the client port is the same as the server port. If the server is on a remote computer, please check the hkey_local_machine\system\currentcontrolset\services\aspnet_state\parameters\ The value of allowremoteconnection to ensure that the server accepts remote requests. If the server is on the local computer and the registry value mentioned above does not exist or is set to 0, the state server connection string must use "localhost" or "127.0.0.1" as the server name.
Web. config
<!--Configure this parameter to ensure that session state is not lost--
<sessionstate mode= "StateServer" stateconnectionstring= "tcpip=127.0.0.1:42424" sqlConnectionString= "data source =127.0.0.1; Trusted_connection=yes "cookieless=" false "timeout="/>
No need to change
Solution Solutions
To enable the "ASP. NET State Service" in the service
Session state requests cannot be made to the session-state server. Make sure that the ASP. NET State Service (ASP) is started