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.
Note: An unhandled exception occurs during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.
Exception details: 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.
Source error:
An unhandled exception is generated during the execution of the current Web request. You can use the following exception stack trace information to determine the cause and location of the exception.
Stack trace:
[HttpException (0x80072749): 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.]
Solution:
1. Start asp.net State (asp.net State Service) on my computer-service)
Or
2. Web. config settings:
The following is the configuration of the test example for you. The setting value for the Port of the State Server is 42424. If you want to modify the value, find the following host values:
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ aspnet_state \ Parameters \ Port is directly modified to the number you want and modified in the corresponding Web. config.
<Configuration>
<System. web>
<SessionState mode = "StateServer"
StateConnectionString = "tcpip = SampleStateServer: 42424"
Cookieless = "false"
Timeout = "20"/>
</System. web>
</Configuration>
3. Delete the configuration string in web. config. In this way, the session is bound to the iis process. Instead of Status Service