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..
Asked
Active
Viewed 881 times
2

ACP
- 34,682
- 100
- 231
- 371
-
@RPM without affecting the existing application.. – ACP Sep 01 '10 at 04:24
-
3Just upload the new global.asax - the next time a visitor starts a new session, the app will call the new code automatically. – Chase Florell Sep 01 '10 at 04:42
-
@rockinthesixstring your suggestion worked please post it as an answer so that i can mark it.. – ACP Sep 01 '10 at 05:17
3 Answers
2
Just upload the new global.asax - the next time a visitor starts a new session, the app will call the new code automatically.

Chase Florell
- 46,378
- 57
- 186
- 376
1
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.

Bennor McCarthy
- 11,415
- 1
- 49
- 51
1
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.

Dienekes
- 1,548
- 1
- 16
- 24