The ultimate solution to the problem that session is easy to lose after ASP. NET state service is enabled on the IIS server

Source: Internet
Author: User

Solution 1:

1. Enable ASP. NET State Service:

Choose Administrative Tools> services, find ASP. NET State service, click open, select start, and set the Startup Type to automatic.

2. SetProgramConfiguration file:

Set the web. when config is enabled, a line is displayed, Which is <sessionstate mode = "inproc" stateconnectionstring = "TCPIP = 127.0.0.1: 42424" timeout = "20"/>. If not, go to <system. add the next line of Web>, change inproc to StateServer, and save it.

Solution:

If the following error persists after method 1 is followed:

Error description:

Unable to make the session State request to the session state server. please ensure that the ASP. net state service is started and that the client and server ports are the same. if the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ aspnet_state \ Parameters \ allowremoteconnection. if the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the State server connection string must use either 'localhost' or '2017. 0.0.1 'as the server name.

Solution

After searching online for half a day, all the answers areASP. NET State ServiceThe service is not enabled, but it is already enabled on the server! Because of anti-virus software problems, McAfee was previously installed on another server, enabling access protection ASP. net all websites will go wrong. After checking that the NOD32 installed on the server is enabled for all functions, turn off the network monitoring (imon) and the verification code will be displayed normally.

Related Article

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.