ASP.NET State Service问题

dean615 2017-12-05 01:07:42
在项目中把session记录在了ASP.NET State Service里,
偶尔会出现如下问题:
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 '127.0.0.1' as the server name

重启服务,发现不起作用。
在这种情况下,使用命令查看端口,发现42424端口并没有启动,
只有重启服务器才可以,启动后用命令查看端口,发现42424端口在listening状态,异常消失
请问要如何解决
...全文
172 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
dean615 2017-12-05
  • 打赏
  • 举报
回复
引用 1 楼 hanjun0612 的回复:
https://www.cnblogs.com/draeag/archive/2007/08/22/865120.html
这些帖子都看过了呀,再强调下 1) 平时运行正常,也就是说,该开的服务,该做的配置,肯定都做了的,不是没开服务,也不是web.config没配置好 2) 出现异常后,重启服务,服务也显示启动成功,正在运行,但是查看端口(netstat –ant),发现42424端口就没启动 只有重启服务器后,42424端口才能启动,异常也就消失了
正怒月神 版主 2017-12-05
  • 打赏
  • 举报
回复
https://www.cnblogs.com/draeag/archive/2007/08/22/865120.html

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧