Recently, the project adopts the "StateServer" mode to save the session, that is, the configuration: <sessionstate mode = "StateServer" stateconnectionstring = "TCPIP = 127.0.0.1: 42424 "cookieless =" false "timeout =" 6000 "/>
When ASP. NET State Service (ASP. NET State Service) is enabled and Registry "allowremoteconnection" and "Port" are correct, the following prompt still appears:
System. Web. httpexception: unable to send a session Status request to the session Status server. Make sure that ASP. NET State Service (ASP. NET State Service) is started and the client port is the same as the server port. If the server is on a remote computer, check the value of HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ aspnet_state \ Parameters \ allowremoteconnection to ensure that the server accepts remote requests. If the server is located on the local computer and the registry value mentioned above does not exist or is set to 0, the status server connection string must use "localhost" or "127.0.0.1" as the server name.
Finally, use the following operations to solve the problem. If you encounter the same problem, try ~
In the control panel, programs, functions, and Windows functions, deselect (uninstall) All function options under the Internet Information Service, World Wide Web service, and application development functions ), restart and re-select (install ).
For more information, see http://www.cnblogs.com/jhlee/p/410136.html.
When sessionstate mode = "StateServer" is used, when the status service is enabled, an error is returned: A session Status request cannot be sent to the session Status server.