Make sure that the ASP. NET State Service (ASP) is started and the client port is the same as the server port

Source: Internet
Author: User
Tags server port

Exception Details: System.Web.HttpException: Unable to issue a session state request to the session-state server. Make sure that you have started the ASP.
Service, and the client and server ports are the same. If the server is on a remote computer, check
Hkey_local_machine\system\currentcontrolset\services\aspnet_state\parameters\allowremoteconnection
value to ensure that the server accepts remote requests.
This is because an unhandled exception was generated during the execution of the current WEB request because the ASP. NET State Service is not open.

Workaround:
Method One:

Right-click "My Computer"-"Computer Management"-"services and Applications"-"services", locate the ASP. NET Status service in the service, start ASP.
State Service, it's ready.
Method Two:

The mode of configuration sessionstate in Web. config is stateserver, but the server specified does not have the service open.
Can be changed to 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.
The state service is running on a remote server that stores session-state information. The service is installed with ASP. NET Premium, and the service is located by default in
<drive>:\program Files\asp.net\premium\version\aspnet_estate.exe.

In the application's Web. config file, set mode=stateserver and set the stateConnectionString property, for example
Stateconnectionstring= "tcpip=sarath:42424".
Method Three:

May be on the machine antivirus software in mischief, think is a virus, do not allow page loading, the anti-virus software off.

Make sure that the ASP. NET State Service (ASP) is started and the client port is the same as the server port

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.