the answer i found :- ASP.NET invalidates the existing cache and assembles a new cache. Then ASP.NET automatically restarts the application to apply the changes.
1) when ASP.NET automatically restarts the application to apply the changes then session data destroyed ?
2) if i do not change any setting in web.config file rather just add a white space and copy the config file in iis then ASP.NET invalidates the existing cache ?
tell me what to change in config file as a result ASP.NET should invalidates the existing cache.
1) when ASP.NET automatically restarts the application to apply the changes then session data destroyed ?
Yes.
tridip1974
2) if i do not change any setting in web.config file rather just add a white space and copy the config file in iis then ASP.NET invalidates the existing cache ?
Does not matter. File still changed. Will restart.
tridip1974
tell me what to change in config file as a result ASP.NET should invalidates the existing cache.
Anything will cause a restart.
I mean think about it. You are changing a configuration file to an application.
Mark all posts that give the desired result the answer. If you only mark the last that gave you clarification because you misread an earlier post others will be confused. Some of us are here to help others and our point to post ratio matters.
how to test it when running site from visual studio IDE because when we run site from visual studio IDE then at runtime we can not change file content. so tell me way if any exist to test it from VS IDE.
i know i can test it if i deploy site to my pc iis.
how to test it when running site from visual studio IDE because when we run site from visual studio IDE then at runtime we can not change file content. so tell me way if any exist to test it from VS IDE.
i know i can test it if i deploy site to my pc iis.
Member
228 Points
301 Posts
What happens when you change the web.config file at run time?
Jan 11, 2018 01:24 PM|tridip1974|LINK
the answer i found :- ASP.NET invalidates the existing cache and assembles a new cache. Then ASP.NET automatically restarts the application to apply the changes.
1) when ASP.NET automatically restarts the application to apply the changes then session data destroyed ?
2) if i do not change any setting in web.config file rather just add a white space and copy the config file in iis then ASP.NET invalidates the existing cache ?
tell me what to change in config file as a result ASP.NET should invalidates the existing cache.
thanks
Contributor
6608 Points
1982 Posts
Re: What happens when you change the web.config file at run time?
Jan 11, 2018 01:58 PM|ryanbesko|LINK
I mean think about it. You are changing a configuration file to an application.
Member
228 Points
301 Posts
Re: What happens when you change the web.config file at run time?
Jan 11, 2018 02:17 PM|tridip1974|LINK
how to test it when running site from visual studio IDE because when we run site from visual studio IDE then at runtime we can not change file content. so tell me way if any exist to test it from VS IDE.
i know i can test it if i deploy site to my pc iis.
thanks
All-Star
30731 Points
11180 Posts
Re: What happens when you change the web.config file at run time?
Jan 11, 2018 02:38 PM|mgebhard|LINK
Press Ctrl-F5 to start without debugging.