Re: Updating web.config.ConnectionStrings at runtime

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Sorry for the delay.

I found a solution : instead of using null (getting a readOnly config file,
cached I think), now I'm using "~" to get the root web.config and I can
write to it.

old code : System.Configuration.Configuration cfgRootWebConfig =
WebConfigurationManager.OpenWebConfiguration(null);

new : System.Configuration.Configuration cfgRootWebConfig =
WebConfigurationManager.OpenWebConfiguration("~");



<fatima.issawi@xxxxxxxxx> wrote in message
news:1173210248.009626.121660@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

Did you find the solution to this problem? I have the same issue.

Fatima



.