如何在更新BLL时防止会话过期 [英] How to prevent session expiration while updating BLL

查看:95
本文介绍了如何在更新BLL时防止会话过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的专家,



我正在开发一个面向一个问题的IIS7托管的网络应用程序。



我在.NET中遵循分层架构,所以当我更改BLL中的任何代码并在实时服务器上传时,我的应用程序需要时间来更新,所有现有会话都已过期,这是在线的,有时我必须重新启动应用程序IIS。



请给我任何好的解决方案,这样我就可以在实时服务器上传我更新的文件,无需会话过期而无需重启。



先谢谢。





Sharad Gupta

解决方案

< blockquote>如果您更改代码,AppDomain将全部回收。



您需要一种不同的方法,例如,您可以将业务逻辑层转换为Web服务吗?那么你可以升级服务(不改变它们的界面)。



只是想一想,希望有所帮助


Dear Experts,

I am working on one web application which is hosted on IIS7 facing one problem.

I am following layered architecture in .NET, so when I change any code in BLL and upload on live server, my application take time to update and all existing session expired which is online and some time i have to restart application from IIS.

Please give me any good solution so i could upload my updated file on live server without session expire with no restart.

Thanks in advance.


Sharad Gupta

解决方案

If you change your code, the AppDomain will allways recycle.

You need a different approach, can you transform your business logic layer into webservices, for instance ? So can you upgrade the services (without changing the interface of them).

Just a thought, hope it helps


这篇关于如何在更新BLL时防止会话过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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