如何在BLL或DAL发生更改时避免应用程序超时 [英] How to avoid application timeout when there is a change in BLL or DAL

查看:111
本文介绍了如何在BLL或DAL发生更改时避免应用程序超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个3层的asp.net应用程序。每当我在BLL或DAL中进行一些更改时,我的应用程序都会注销并进入登录页面。我该如何避免这种情况?当用户在页面中进行数据输入并单击保存按钮时,这会导致一种尴尬的情况。他们最终看到了登录页面。



请帮帮我



提前致谢

I have a 3 tier asp.net application. Whenever I do some change in BLL or DAL, my application logout and come to login page. How can I avoid such situation? It leads to an awkward situation when users are doing a data entry in a page and click on save button. They end up seeing login page.

Please help me

Thanks in advance

推荐答案

您最有可能使用InProc会话状态模式。这意味着当IIS检测到文件系统的更改时,它会重新加载整个过程,这意味着会话信息丢失,基本上每个人都会被注销。



您要么想要更改您的会话状态模式到Sql Server或State Server。 https://msdn.microsoft.com/en-us/library/ms178586 (v = vs.140).aspx [ ^ ]



或者,您只是在下班后进行更新。
You are most likely using InProc Session State Mode. This means when IIS detects changes to the file system it reloads the whole process meaning Session information gets lost and essentially everyone is logged out.

You'll either want to change your session state mode to Sql Server or to State Server. https://msdn.microsoft.com/en-us/library/ms178586(v=vs.140).aspx[^]

Or, you just do updates after hours.


这篇关于如何在BLL或DAL发生更改时避免应用程序超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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