vps服务器出现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_MACHINESYSTEMCurrentControlSetServicesaspnet_state
ParametersAllowRemoteConnection. 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解决方案整理于网络

时间: 2024-07-29 03:06:28

vps服务器出现Unable to make the session state request错误解决方法的相关文章

vps报错Unable to make the session state request_win服务器

客户反应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)

问题描述 我用一个循环不停地执行以下代码来生成HTML静态文件,可是每执行一段时间就会报告服务器500内部错误:Unabletomakethesessionstaterequesttothesessionstateserver,我在网上查了下,这个好象是因为连接池已满导致的.请大家帮忙看看下面代码有些什么问题,谢谢.url=http://www.csdn.net/fly.aspx?id=515225;GetPageHtml(url);privateStringGetPageHtml(string

IIS报在服务器上找不到脚本语言&#039;VBScript.encode&#039;错误解决方法_win服务器

VBScript.Encode 这个组件经常被用来加密一些ASP的木马后门以达到免杀效果,还有一些程序的作者也会在ASP中使用加密以达到保护版权的目的. 偶然间发现,有套程序传到服务器上,程序报错了: 复制代码 代码如下: Active Server Pages 错误 'ASP 0129' 在服务器上找不到脚本语言 'VBScript.encode' /config.asp,行 5 按道理程序在本地调试过的,没有问题,于是找到了网站根目录下的config文件,看向第5行,居然是一些乱码!噢,原来

502 bad gateway是什么意思 502 bad gateway错误解决方法_服务器其它

您可以尝试清除浏览器缓存 访问一下你的FTP看是否可以登陆 成功解决502 Bad Gateway错误 今天登陆博客,显示502 bad gateway,NGINX最烦人的地方就是经常会出现这个错误,由于我并不打算在技术上花费过多的时间,所以一般是遇到了相关问题,通过搜索引擎解决后即可,不会去深究.废话不多说,说说我的坎坷经历. 首先,我重启了服务器,可是重启了好几次,都无效,然后去Google搜索了下502 bad gateway,出来了很多的网页,筛选后进入http://lnmp.org/f

Linux VPS/服务器上轻松导入、导出MySQL数据库的几种方法_Linux

下面VPS侦探说一下几个解决方法: MySQL数据库导出 方法1:mysqldump命令 执行命令: /usr/local/mysql/bin/mysqldump -u 用户名 -p 数据库名 > 文件名 如果数据库用户名有密码密码,执行后会提示输入密码.如果数据库用户名没有密码,就将命令中的"-p"参数删除. 注意:推荐使用MySQL root帐号进行操作,因为有些数据库可能设置了只能对应的用户进行操作. 方法2:phpmyadmin phpmyadmin支持将数据库文件直接备

500-IIS服务器内部错误解决方法

iis|错误|服务器|解决 最近机子的IIS始终不正常,总是说http500错误,无法解析asp文件,但可以显示静态HTML.去掉'显示友好的URL错误'后报错:Server Application ErrorThe server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more de

Android技巧:Unable to execute dex: Multiple dex files define解决方法

唔,之前已经想过今后不动android,没想到还是因为比赛的原因重操旧业.android有很多问题是由于eclipse的不完善造成的,比如今天遇到的这个问题 Unable to execute dex: Multiple dex files define [2011-10-23 16:23:29 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/myapp/R$array; [2011-10-23 16:23:

【Android-tips】 Unable to execute dex: Multiple dex files define 解决方法

    唔,之前已经想过今后不动android,没想到还是因为比赛的原因重操旧业.android有很多问题是由于eclipse的不完善造成的,比如今天遇到的这个问题 Unable to execute dex: Multiple dex files define [2011-10-23 16:23:29 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/myapp/R$array; [2011-10-23 16

IIS 运行ASP文件500内部错误解决方法大全_win服务器

1 IIS服务器出现500错误   2错误原因:500错误的原因一般是源程序出现错误造成的. 3 解决办法:1 首先设置IE浏览器à工具->Internet选项   2 刷新或者重新打开500错误页面就会出现错误的程序部分   3 根据错误提示,然后解决问题.     4 ADODB.Connection 创建失败的可能解决方法: 1.重装MDAC2.8. MDAC 2.8下载地址: http://www.microsoft.com/downloads/details.aspx?displayl