简体   繁体   中英

How to recycle my asp.net web application in production server?

I have made changes to my global.asax file so i want to recycle my web application to make the changes work. How to safely recycle my asp.net web application in production server? Any ideas..

只需上传新的global.asax-访客下次启动新会话时,应用程序将自动调用新代码。

In IIS, you can recycle the Application Pool for your application.

In IIS 7: go into Application Pools, right-click your application's Application Pool and click 'Recycle...'.

If you're worried about not killing users' sessions, etc, then I'm not sure it's possible.

Directly upload the asax file over the server instance and it would work as expected.

A new AppDomain would be created when you upload the new global.asax file in the site and this would be used for any new requests arriving at the server and for existing requests the earlier version would remain active as lon as the session's active.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM