global.aspx and web.config

  • Thread starter Thread starter RedHair
  • Start date Start date
R

RedHair

When global.aspx or web.config are changed , the web application will
restart?
Is it possible to change content of web.config in the applcation_start() of
global.aspx?
if yes, this will restart the application? and trigger the
application_start() again?
 
Hi,
When global.aspx or web.config are changed , the web application will
restart?
Is it possible to change content of web.config in the applcation_start() of
global.aspx?
if yes, this will restart the application? and trigger the
application_start() again?

That's correct. You shouldn't do that.

Anyway, you should avoid modifying the web.config during runtime (except
if you know exactly why you do it), because restarting the application
will also terminate all the sessions, and everything that was stored in
the sessions will be lost.

HTH,
Laurent
 
Back
Top