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.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.