gpt4 book ai didi

.net - 更新到 2.10.1 后 webApp 不起作用

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:08:22 25 4
gpt4 key购买 nike

我是 Ubuntu 10.04 LTS 的新手

当我运行 web 应用程序时发生错误:

“/mywebApp”应用程序中的服务器错误

对象引用未设置到对象的实例

描述:HTTP 500。处理请求时出错。

堆栈跟踪:

System.NullReferenceException: 对象引用未设置到对象的实例 在 System.Web.SessionState.SessionInProcHandler.GetItemInternal(System.Web.HttpContext 上下文、System.String id、System.Boolean 和锁定、System.TimeSpan 和 lockAge、System.Object 和 lockId、System.Web.SessionState.SessionStateActions 和操作、 bool 独占) [0x00000] 在 :0
版本信息:Mono Runtime Version: 2.10.8.1 (Debian 2.10.8.1-1~dhx1~lucid1); ASP.NET 版本:2.0.50727.1433

最佳答案

一种解决方案是使用进程外 session 状态:

  1. 打开控制台并键入“asp-state4”以启动服务器。
  2. 打开您的 web.config 并在 <system.web> 下添加:

    <sessionState mode="StateServer"
    stateConnectionString="tcpip=localhost:42424"
    stateNetworkTimeout="100"/>

关于.net - 更新到 2.10.1 后 webApp 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10204538/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com