G
Guest
Hi all,
I was playing with the new ConfigurationManager class in the Feb CTP drop of
VS 2005 and I noticed that if you make changes to the configuration inside of
an ASP.NET page, those changes are immediately written to the web.config when
you say Configuration.Save() but if I then try to access them, they do not
appear to refresh within the request.
Not completely unexpected I suppose but I was wondering if anyone knew if
this is the way this is supposed to work or if the current request should
have picked up the changes?
Basically I added a new sqlCacheDependency using the configuration classes
and then called the constructor of SqlCacheDependency with the corresponding
information and it threw an exception because it couldn't find the setting I
just wrote out to the web.config. I got around it by doing a
response.redirect back to the page again and then executing the constructor
which worked but if the changes won't take until a new page loads then I'd
just like to know that is the case.
Thanks in advance for any help on this.
Jay
I was playing with the new ConfigurationManager class in the Feb CTP drop of
VS 2005 and I noticed that if you make changes to the configuration inside of
an ASP.NET page, those changes are immediately written to the web.config when
you say Configuration.Save() but if I then try to access them, they do not
appear to refresh within the request.
Not completely unexpected I suppose but I was wondering if anyone knew if
this is the way this is supposed to work or if the current request should
have picked up the changes?
Basically I added a new sqlCacheDependency using the configuration classes
and then called the constructor of SqlCacheDependency with the corresponding
information and it threw an exception because it couldn't find the setting I
just wrote out to the web.config. I got around it by doing a
response.redirect back to the page again and then executing the constructor
which worked but if the changes won't take until a new page loads then I'd
just like to know that is the case.
Thanks in advance for any help on this.
Jay