. 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