asp.net State Service Problem Solving method _ practical skills
Source: Internet
Author: User
Exception Details: System.Web.HttpException: Unable to issue a session-state request to the session-state server. Make sure 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 computer, check the hkey_local_machine\system\currentcontrolset\services\aspnet_state\parameters\ The allowremoteconnection value to ensure that the server accepts remote requests.
This is because the ASP.net State Service status services are not open, so an unhandled exception was generated during the execution of the current WEB request.
Workaround:
Method One: Right-click "My Computer"-"Computer Management"-"services and Applications"-"services", find ASP.net State services in the service, start ASP.net State services, you can.
Method Two: The mode of sessionstate configured in Web.config is StateServer, but the specified server does not have that service open.
Change into 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"
/>
You are not using "stateserver", if yes, please refer to:
Using StateServer mode
Ensure that the ASP.net state service is running on a remote server that stores session-state information. The service is installed with the ASP.net Premium version, and the service is in <drive>:\program Files\asp.net\premium\version\aspnet_estate.exe by default.
In the application's Web.config file, set the Mode=stateserver and set the stateConnectionString property, such as stateconnectionstring= "tcpip=sarath:42424".
Method Three: May be the anti-virus software on the machine at mischief, that is, the virus, not allow the page to load, the anti-virus software turned off.
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