vps报错Unable to make the session state request

客户反应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解决方案整理于网络,如果你们有更好的解决方法请联系我们

(0)

相关推荐

  • smarty模板中使用get、post、request、cookies、session变量的方法

    {$smarty}保留变量不需要从PHP脚本中分配,是可以在模板中直接访问的数组类型变量,通常被用于访问一些特殊的模板变量.例如,直接在模板中访问页面请求变量.获取访问模板时的时间戳.直接访问PHP中的常量.从配置文件中读取变量等. 1.在模板中访问页面请求变量 我 们可以在PHP脚本中,通过超级全局数组$_GET.$_POST.$_REQUEST获取在客户端以不同方法提交给服务器的数据,也可以通 过$_COOKIE或$_SESSION在多个脚本之间跟踪变量,或是通过$_ENV和$_SERVER

  • jsp 对request.getSession(false)的理解(附程序员常疏忽的一个漏洞)

    [前面的话] 在网上经常看到有人对request.getSession(false)提出疑问,我第一次也很迷惑,看了一下J2EE1.3 API,看一下官网是怎么解释的. [官方解释] getSession public HttpSession getSession(boolean create) Returns the current HttpSession associated with this request or, if if there is no current session an

  • Request获取Session的方法总结

    Request获取Session的方法总结 1.无请求参数 public HttpSession getSession() 获取当前request关联的session,如果当前request没有session,创建一个session. 2.有请求参数 public HttpSession getSession(boolean create); 1)create如果为true,如果当前request的session为空,创建一个,如果不为空则返回当前request关联的session. 2)cre

  • java 中 request.getSession(true、false、null)的区别

    java 中 request.getSession(true/false/null)的区别 一.需求原因 现实中我们经常会遇到以下3中用法: HttpSession session = request.getSession(); HttpSession session = request.getSession(true); HttpSession session = request.getSession(false); 二.区别 1.      Servlet官方文档说: public Http

  • vps报错Unable to make the session state request

    客户反应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. 复制

  • Android Studio报错unable to access android sdk add-on list解决方案

    一.问题 初次安装Android Studio,启动后,报错如下: unable to access android sdk add-on lis 如图: 二.原因 AS启动后,会在默认路径下检测是否有Android SDK,如果没有的话,就会报上述错误. 三.解决方案 3.1 主动设置SDK 如果本机有Android SDK的话,可以点击cancel跳过,在下一个界面手动选择本地SDK目录就可以了. 3.2 跳过检测 在Android Studio的安装目录下,找到\bin\idea.prop

  • IDEA报错:Unable to save settings Failed to save settings

    今天打开IDEA时,出现了"Unable to save settings Failed to save settings"异常,百度了一下,发现大部分都是说卸载"identifier Highlighter"插件,但是我并没有安装这个插件,所以在翻找了好久之后,终于是解决了问题,在此下一下我的解决经验. IDEA这个报错翻译过来就是:"保存设置失败",至于是为什么失败,并没有在此处说明,但是IDEA把具体原因放到了他的日志文件中,所以只要我们找

  • flutter升级3.7.3报错Unable to find bundled Java version解决

    目录 引言 升级过程很顺利,一跑应用傻眼了,报错! build gradle 指定 compileSdkVersion 33报错 引言 Android studio 是2020 年的版本,有点老,昨天突发想法,升级到了 Android Studio Electric Eel 2022.1. 计划今天和明天写那个 Flutter WebView 优化的文章,这篇是 在 Flutter 中使用 webview_flutter 4.0 | js 交互 的续集.早上起来,发现 Flutter 有新版本了

  • 解决springboot服务启动报错:Unable to start embedded contain

    目录 1. 根据报错信息发现是在刷新容器的方法onRefresh中抛出的 2. 接着被捕获异常的方法源码 3. 再接着就是抛出异常的根源所在的源码 4. 知道原因了反过去查看代码发现启动类中少写了注解 5. 还有一种情况需要注意 初次接触spring-boot + spring-cloud构建微服务项目,配置好项目后并选择启动类启动时报如下错误: [main] ERROR org.springframework.boot.SpringApplication - Application start

  • Eclipse运行android项目报错Unable to build: the file dx.jar was not loaded from the SDK folder的解决办法

    由于最近通过SDK-Manager更新了build-tools,当要用到dx.jar这个包时,自动调用最新build-tools中dx.jar,但是运行Android项目时Console却提示: Failed to load C:\Program Files (x86)\android\android-sdk\build-tools\26.0.0-preview\lib\dx.jar Unable to build: the file dx.jar was not loaded from the

  • Spring Boot报错:No session repository could be auto-configured, check your configuration的解决方法

    本文主要跟大家分享了关于Spring Boot报错:No session repository could be auto-configured, check your configuration的解决方法,下面话不多说,来一起看看详细的介绍: 一.环境介绍 JDK 1.8  spring-Boot 1.5.1.RELEASE, STS IDE 二. 问题的提出 创建了一个非常简约的Spring Boot Web Application,其中使用了Spring-Session,具体的maven依

  • 解决Android studio 3.6.1 出现Cause: unable to find valid certification path to requested target 报错的问题

    1.首先修改根目录下的build.gradle成如下格式 // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' } maven { url 'http:

  • IDEA配置maven环境的详细教程(Unable to import maven project报错问题的解决)

    IDEA配置maven环境 一.配置maven本地环境 先参照以下博客进行maven的安装,配置 IDEA 如何搭建maven 安装.下载.配置(图文) 使用IntelliJ IDEA 配置Maven(入门) maven本地环境配置成功 二.IDEA配置maven环境 1.使用IDEA内置maven及默认配置 ​需要修改IDEA内置maven的setting.xml文件,更改中央仓库的地址,否则下载jar包会极其的慢. ​以下是默认的maven配置,其中 .m2这个文件夹不是自己创建的,是IDE

  • php中unable to fork报错简单解决方法

    今天小编遇到一个问题,当调用了system方法,并且执行了shell脚本,开始的时候,一切都非常正常,但是当程序运行后一段时间,出现了显示unable to fork的报错,这个是什么原因呢,后来小编排查了下,主要是因为达到用户的进程上限了,下面小编给大家介绍下解决方式. 限制linux用户的进程数 修改以下文件 vi /etc/security/limits.conf vpsee hard nproc 32 @student hard nproc 32 @faculty hard nproc

随机推荐