ASP.NET State Service

weigang chen 1 Reputation point
2020-07-02T09:47:20.667+00:00

asp.net 报如下错误:

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

可问题是检查 ASP.NET State Service这个服务,是已经启动的。web.config文件设置如下:
<sessionState timeout="60" mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" />

这个错误仅在使用人数较多是不停发生。

这到底是什么原因呢?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,675 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2020-07-02T12:35:59.777+00:00

    ASP.Net is not currently supported here on QnA. They're actively answering questions in dedicated forums here.
    https://forums.asp.net/

    --please don't forget to Accept as answer if the reply is helpful--


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments