About ASP. NET State Service Status Service

Source: Internet
Author: User
After the machine is restarted, run Web on. net2005. Program This problem is always encountered:

Exception details: system. Web. httpexception: unable to send a session Status request to the session Status server. Make sure that ASP. Net state service has been started and the client and server ports are the same. 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.

This is because the ASP. NET state service status service is not opened, so an unprocessed exception is generated during the execution of the current Web request.

Solution:
Method 1:
Right-click "my computer"-"Computer Management"-"services and applications"-"services", and find ASP in the service. net Status Service, start ASP. net status service.

Method 2:
In web. config, the mode of sessionstate is set to StateServer, but the specified server does not enable that service.
Change to inproc.
<Sessionstate
Mode = "inproc"
Stateconnectionstring = "TCPIP = 127.0.0.1: 42424"
Sqlconnectionstring = "Data Source = 127.0.0.1; user id = sa; Password ="
Cookieless = "false"
Timeout = "20"
/>
Are you using "StateServer"? If yes, refer:
Use StateServer mode

Make sure that ASP. Net status service is running on the remote server that stores session status information. This service is installed with ASP. net premium and is located in <drive >:\ Program Files \ ASP. NET \ premium \ version \ aspnet_estate.exe by default.
In the Web. config file of the application, set mode = StateServer and set the stateconnectionstring attribute. For example, stateconnectionstring = "TCPIP = Sarath: 42424 ".

method 3:
the anti-virus software on the machine may be a virus. webpage loading is not allowed and anti-virus software is disabled.

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.