【问题标题】:cannot use stateserver mode other than inproc不能使用 inproc 以外的 stateserver 模式
【发布时间】:2011-10-28 10:32:59
【问题描述】:

我遇到的最烦人的问题。我有一个带有会话状态模式的 asp.net mvc 应用程序到状态服务器。在我的本地机器和旧服务器 iis6 上它可以工作,但我最近更改为运行 iis7 的新服务器,现在是:

 <sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" timeout="20" />

什么都不做。即使我将连接字符串中的值设置为不存在的值,它也会被忽略,因此它只使用 inproc。

我在 iis 下的所有 webapps 都有同样的问题。

我也尝试过 sqlserver 模式,结果相同。它只是被忽略了。

为什么哦为什么??

【问题讨论】:

    标签: asp.net asp.net-mvc iis-7 session-state stateserver


    【解决方案1】:

    在 IIS 中有一个地方可以禁用 InProcess 会话状态。

    这些文章应该为您指明正确的方向:

    http://technet.microsoft.com/en-us/library/cc732964%28WS.10%29.aspx

    http://technet.microsoft.com/en-us/library/cc725624%28WS.10%29.aspx

    【讨论】:

      猜你喜欢
      • 2023-03-20
      • 1970-01-01
      • 1970-01-01
      • 2010-09-10
      • 1970-01-01
      • 1970-01-01
      • 2011-08-19
      • 2019-09-28
      • 1970-01-01
      相关资源
      最近更新 更多