欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

vps报错Unable to make the session state request

程序员文章站 2022-04-25 11:57:17
客户反应vps报错unable to make the session state request,我司技术将解决方法总结如下,希望可以帮助更多的人解决“unable to...
客户反应vps报错unable to make the session state request,我司技术将解决方法总结如下,希望可以帮助更多的人解决“unable to make the session state request”难题。

一、【unable to make the session state request问题】

页面打开时,出现如果下错误.处理方法.或者登陆后不久,频繁的返回到了登录界面

登录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.


二、【unable to make the session state request解决方案】

开启asp.net state service服务,把它设成自动。再在web.config中的<system.web>下加一行
<sessionstate mode="stateserver" stateconnectionstring="tcpip=127.0.0.1:42424" timeout="20"/>,
具体操作如下:
1、选择管理工具->服务,找到asp.net state service,点开后选择启动,并将启动类型设为自动
2、 将web.config打开,会看到有一行是
<sessionstate mode="inproc" stateconnectionstring="tcpip=127.0.0.1:42424" timeout="20"/>,
如果没有,请在<system.web>的下一行添加,再将其中的inproc改为stateserver,保存即可。
vps报错unable to make the session state request解决方案整理于网络,如果你们有更好的解决方法请联系我们