This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18633|Reply: 0

[ASP.NET] Unable to make a session state request to the session state server, make sure ASP.NET stat...

[Copy link]
Posted on 11/6/2019 5:43:19 PM | | | |
This post was last edited by QWERTYU on 2019-11-7 08:47

"/" Server error in the application.
Session state requests cannot be made to the session state server. Make sure that the ASP.NET State Service (ASP.NET State Service) is started and that the client port is the same as the server port. If the server is on a remote computer, check the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection to make sure that the server accepts the remote request. If the server is on the local machine and the registry value mentioned above does not exist or is set to 0, the state server connection string must use "localhost" or "127.0.0.1" as the server name.Note:An unhandled exception occurred during the execution of the current web request. Check the stack trace information for details about the error and where it came from in your code that caused the error.

Exception details:System.Web.HttpException: 无法向会话状态服务器发出会话状态请求。请确保 ASP.NET State Service (ASP.NET 状态服务)已启动,并且客户端端口与服务器端口相同。如果服务器位于远程计算机上,请检查 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection 的值,确保服务器接受远程请求。如果服务器位于本地计算机上,并且上面提到的注册表值不存在或者设置为 0,则状态服务器连接字符串必须使用“localhost”或“127.0.0.1”作为服务器名称。



Solution:
The first step is to open the Services window, as follows:

Step 2: Find ASP.NET State Service (ASP.NET State Service) in the service list, set the startup type to Manual, and set the status to Started.




Previous:Being disliked and being hated are two completely different things
Next:SQL Server types correspond to C# types
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com