. Net verification code page Error

Source: Internet
Author: User

. Net verification code page appears if the following error occurs. solution.

Log on to the server error in '/' application.
--------------------------------------------------------------------------------

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.

The logon page is returned in a short time in the background.
Enable the ASP. NET State service and set it to automatic. Add a <sessionstate mode = "StateServer" stateconnectionstring = "TCPIP = 127.0.0.1: 42424" timeout = "20"/> line under <system. Web> in Web. config, as shown below:

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.

 

Ii. SettingsProgramConfiguration 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.(Note: If this parameter is not modified, the background logon verification status will be interrupted for a short period of time, as shown in the "re-Logon" dialog box)

 

From: http://hi.baidu.com/net5x/blog/item/da8a0f666f6c5621ab184c93.html

**************************

If not, try the following methods:

In web. config, <sessionstate mode = "StateServer"/>

This is the method for session storage. The method you selected now is StateServer, which is a "service", but it is disabled by default.

Solution:
1. Change <sessionstate mode = "StateServer"/> to <sessionstate mode = "inproc"/>

2. Enable the Asp.net Status Service
"Management tool"-> "service"-> "ASP. NET Status Service"-> Start

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.