2014-09-05 54 views
0

ASP.NET Web应用程序,Framwork 4.5,VS 2012的教授更新4.Application_Start事件发射每个回发 - 丢失会话和缓存

问题:我有没有缓存或会话。我的会话变量丢失。

根据调试器,所有Global.asax事件在每次回发时触发。

的每一次点击事件的按钮或链接的顺序是:

Application_Start 
Application_BeginRequest 
Application_AuthenticateRequest 
Session_Start 
Session_End 
Application_End 

所有上述事件处理程序是空的(defult)。

<sessionState cookieless="AutoDetect" mode="InProc" timeout="20"/>

Anonymous Authentication is enabled; 
Windows Authentication is disabled; 

有一个在主机没有下划线。 任何想法为什么它会破坏Session?

+0

谢谢thekip指出正确的方向。部署到Azure的应用程序就像一个冠军。显然,我的开发环境出了问题。 – 2014-09-06 07:11:56

回答

0

你确定你的应用程序没有回收每个请求吗?

检查你的事件日志,你可能有一个stackoverflow异常或类似的东西。