IIS server asp.net state Service open session is still easy to lose the problem of the ultimate solution _win Server

Source: Internet
Author: User

Workaround One:

1. Open asp.net State service:

Select the Admin tool-> Service, locate the ASP.net state service, select Start after the point is opened, and set the startup type to Automatic.

2. Set the program configuration file:

When you open the web.config, you will see that one row is <sessionstate mode= "InProc" stateconnectionstring= "tcpip=127.0.0.1:42424" timeout= "20"/ If not, please add in the next line of <system.web>, then change the InProc to StateServer and save it.

Workaround:

If you follow the method one does not appear the following error: The solution is as follows

Error Description:

Unable to make is the session state request to the session state server. Please ensure this ASP.net state service are started and that the client and server ports are the same.   If The server is in a remote machine, please ensure this it accepts remote requests by checking the value of Hkey_local_machi ne\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 are set to 0, then the state server Connect Ion string must use either ' localhost ' or ' 127.0.0.1 ' as the server name.

workaround

online search for half a day, find the relevant answer is that the asp.net State Service services are not open, But the server is already on the open AH! Because of the problem of anti-virus software, previously installed on another server McAfee, open Access Protection asp.net all the sites will be wrong, look at the server installed NOD32, is to turn all the features are turned on, turn off network monitoring (Imon), The verification code can display the

correctly.
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.