global.aspx and web.config

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?
 
L

Laurent Bugnion

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,088
Latest member
JeremyMedl

Latest Threads

Top