调试ASP.NET会话状态服务器问题 [英] Debugging ASP.NET Session State server issues

查看:96
本文介绍了调试ASP.NET会话状态服务器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有过载运行平衡服务器实例,并因此被配置为使用ASP.NET会话状态的服务,这是我们的数据库服务器中的一个运行的应用程序。虽然我们的应用程序的两个实例可以成功连接到状态服务器,会话状态数据的变化不被跨越两者体现。 FI,如果我称之为 Session.Add('SomeKey',SomeData)在服务器A,这不是被反射,如果我再尝试访问会议['SomeKey'] 服务器B

We have an application that runs over load balanced server instances, and therefore is configured to use the ASP.NET session state service, which is running on one of our DB servers. While both instances of our app can successfully connect to the state server, changes in session state data are not being reflected across both of them. FI, If I call Session.Add('SomeKey', SomeData) on Server A, this is not being reflected if I then try to access Session['SomeKey'] on Server B.

Session.SessionID返回两个服务器上相同的价值,我已经检查,他们都使用machine.config中的部分的machineKey配置了相同的validationKey和decryptionkey值。我甚至尝试在web.config中的应用程序指定这些值。

Session.SessionID returns the same value on both servers, and I have checked that they are both using the same validationkey and decryptionkey values configured in the machinekey section of machine.config. I even tried specifying these values in the apps web.config.

什么其他的事情,我应该寻找出可能会引起这些症状,人们可以推荐什么措施来帮助调试这个问题?

What other things should I be looking out for which may be causing these symptoms, and what steps can people recommend to help debug this issue?

推荐答案

这是否帮助:

http://support.microsoft.com/kb/325056

要在整个维护会话状态
  Web场中不同的Web服务器,
  该网站的应用程序的路径
  (例如,\\ LM \\ W3SVC \\ 2)中的
  Microsoft Internet信息
  服务(IIS)元数据库必须是
  同所有的Web服务器上
  Web场。的情况下也需要
  相同的,因为应用程序的路径
  区分大小写。

To maintain session state across different Web servers in the Web farm, the application path of the Web site (for example, \LM\W3SVC\2) in the Microsoft Internet Information Services (IIS) metabase must be the same for all of the Web servers in the Web farm. The case also needs to be the same because the application path is case-sensitive.

这篇关于调试ASP.NET会话状态服务器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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