Как обновить сайт ASP.NET dll, не останавливая сайт

email-spec выглядит как хорошая библиотека

http://github.com/bmabey/email-spec

5
задан muel98 21 October 2009 в 17:02
поделиться

1 ответ

even if you don't stop, any change to the web.config file, BIN folder, App_Data or App_Code will force the .NET compiler to perform ...

and you will loose any Session variables in memory.

What I do is to use Session State in SQL Mode and if your system is set up like this, user will remain in the site (after a longer exposition to a page reload)

.NET will still invoke the compiler in order to compile the new set of instructions but soon it is done, all sessions will be read from SQL Server and because they are still there (and not lost with a memory refresh) users will remain in the website with current credentials.

it is a little bit slower than In-Memory Session State, but much more reliable, specially with Shared hosting :) this is the way to increse/decrese the minutes in your session, as Shared hosting do not allow it to change even if you do

Session.Timeout = 5;

their machine configuration will override everything you do, with SQL Session State, you will be able to set your time as this is all made by SQL Server.

Fell free to read this article to know how everything is done.

Hope it helps.

9
ответ дан 14 December 2019 в 01:11
поделиться
Другие вопросы по тегам:

Похожие вопросы: