加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – 突然收到“无法向会话状态服务器发出会话状态请求”

发布时间:2020-12-16 03:24:02 所属栏目:asp.Net 来源:网络整理
导读:设置:2个Web服务器和一个单独的状态服务器 我有两个负载平衡配置的生产Web服务器.他们在web.configs中使用此行主持共享状态的ASP.NET Web应用程序(如Web场): sessionState mode="StateServer" stateConnectionString="tcpip=9.9.9.9:42424" cookieless="fa
设置:2个Web服务器和一个单独的状态服务器

我有两个负载平衡配置的生产Web服务器.他们在web.configs中使用此行主持共享状态的ASP.NET Web应用程序(如Web场):

<sessionState mode="StateServer" stateConnectionString="tcpip=9.9.9.9:42424" cookieless="false" timeout="60"/>

9.9.9.9是asp.net会话状态服务运行的机器的IP(确实它不是9.9.9.9,改为保护无辜者).它是第三台机器(实际上是数据库服务器).

它工作正常,直到……

错误:网站下来!

突然,该网站出现故障,只显示一个通用的asp.net错误页面(‘关闭自定义错误以查看此错误’或其他).

应用程序的日志记录了实际的错误消息:

An unhandled exception occurred 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_MACHINESYSTEMCurrentControlSetServicesaspnet_stateParametersAllowRemoteConnection. 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.

因此,似乎Web应用程序无法联系状态服务器(9.9.9.9).

我“尝试转动如果auf然后onnegen” – 重新启动状态服务器修复了问题.

为什么?

我真的想知道发生了什么,为什么我可以防止它再次发生.

到目前为止我只有两个理论:

>对于.net框架4的Windows更新在该状态服务器上应用了.那么也许更新对asp.net状态服务做了些什么? Windows事件查看器显示.net 4已经记录了一个警告:

Updates to the IIS metabase were aborted because IIS is either not installed or is disabled on this machine. To configure ASP.NET to run in IIS,please install or enable IIS and re-register ASP.NET using aspnet_regiis.exe /i.

> prod网站和状态服务器之间存在某种临时网络问题?它们确实位于同一个物理机架中.
> ???任何其他想法,任何人?

有人以前见过这个,或者能够纠正我的任何事情吗?

解决方法

这是发生过吗?答案很简单,问题在于数据库服务器,而不是网络应用程序.数据库服务器上的日志中是否存在任何相关错误?

两个应用程序都抛出错误的事实表明共同资源是问题所在.我们追回了一个类似的问题,一段时间以来一直很好,并最终找到了一个错误的光纤通道小工具. (这低于我的OSI水平,不确定细节).

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读