Web配置中会话状态错误 [英] error in session state in web config

查看:83
本文介绍了Web配置中会话状态错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用会话状态时,出现以下错误:

I have the below error :when I am using the session state

<sessionState   mode="StateServer" stateConnectionString ="tcpip=127.0.0.1:42424"   cookieless="false" timeout="1000"/>




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




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
how it is removed please tell me.

推荐答案

要解决此问题,

转到开始

在运行"
中键入
To solve this problem

Goto Start

Type
services.msc

然后服务窗口打开

之后

右键单击"Asp.net状态服务",然后单击开始"

希望这对您有帮助

in Run
then services window opens

after that

right click on ''Asp.net State Service'' and click on start

Hope this helps


http: //dotnetguts.blogspot.com/2009/06/steps-for-session-inproc-mode-to.html [ http://forums.asp.net/t/1030680.aspx [
http://dotnetguts.blogspot.com/2009/06/steps-for-session-inproc-mode-to.html[^]
also see the discussion
http://forums.asp.net/t/1030680.aspx[^]


这篇关于Web配置中会话状态错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆