English 中文(简体)
A. 国家会议使Session国家问题得以解决
原标题:Session state enableSessionState issues in asp.net application

我在生产环境中发现以下错误:

只有在组合档案或页指令中能够确定国家的真实性时,才能使用国家开会。 还请确保这一制度。 Web.SessionState 模块或习俗会议国家单元列入配置系统。 http://www.ohchr.org。

截至现在,我已尝试过下列事情:

  • Checked machine.config and web.config, both have enableSessionState="true"
  • Added enableSessionState="true" to pages in web.config
  • State module is also added in <httpmodules> section
  • Even tried setting enableSessionState="true" in page directive

注:当我试图在Dev环境推翻该法典时,一切照旧。

任何人都能够帮助我摆脱这一问题,我只能说出一条出路。

最佳回答

贵会议认为什么? 也许,你要建立起来,以使用不停的会议处理。

http://msdn.microsoft.com/en-us/library/ms178586.aspx

问题回答

我知道这是一个过时的反应,但我只想补充一下我如何确定同样的问题。

First I want to emphasize that I m using web forms, not MVC - this may not work for MVC.

我创建了一个包含ContactUser的网络表格。

public ContactUser(String to, bool isUser) { ... }

我在此试图获取一个会议变量:

www.un.org/Depts/DGACM/index_spanish.htm 用户=会议[“用户名称”]

请注意,CANNOT在某类建筑商中使用会议状态,但可在你撰写的其他职能中使用,在受保护的空白页_Load(目标制片、活动Args e)程序中使用。 因此,一旦我把建筑商排出一页装货程序,所有工作都发挥了作用。

希望能帮助陷入同样问题的所有人:D!





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签