Reputation: 11498
Everytime I upload a file to my ASP.NET site, all users are logged out (aka, I guess their session become invalidated).
Is there any way to "hotswap" the code in ASP.NET so that this doesn't happen? Compile before deploying etc.
My deployment method is pretty simple through a SVN update.
Thanks! /Niels
Upvotes: 1
Views: 366
Reputation: 20674
You could store your session in a SQL database, thus the application restart would not lose your sessions.
Having precompiled non updatable code to deploy would make your xcopy faster alright but app pool would still be restarted.
UPDATE: @configurator, making your comment visible to any casual observers http://support.microsoft.com/kb/317604
(there is plenty of coverage of the different options and how-tos out there, e.g. more than one session db, different frameworks dbs in same db, etc)
Upvotes: 4
Reputation: 7990
If you're deploying files to the bin folder or the web.config, this will automatically reset the site for very good reasons.
Upvotes: 2