Groups | Blog | Home
all groups > asp.net > january 2006 >

asp.net : WIERD: Cant change webconfig in 2.0?


VB Programmer
1/26/2006 11:58:26 PM
I used to be able to change minor settings in my web.config file when it was
on the web server, such as <appSettings> elements. In ASP.NET 2.0 I noticed
that there is a web.config AND a PrecompiledApp.config file. So, how can I
change <appSettings> (or other) elements once it's been deployed to the
server?

Thanks!

Ewild
1/27/2006 5:07:03 AM
Admins can lock settings. here is a link.

http://msdn2.microsoft.com/ms178693.aspx

Eric

[quoted text, click to view]
VB Programmer
1/27/2006 9:04:08 AM
This isn't the case. All my other sites work fine and my hoster didn't do
this.

In 2.0 the web.config is handled differently if precomiled it seems. In my
web deployment project I clicked 'enable web.config file section
replacement' and put this: appSettings=appsettings.config;

Then I created an appsettings.config and added the whole <appSettings>
section.

Is this correct? After I publish do I modify the appsettings.config to make
these changes?

Thanks.


[quoted text, click to view]

AddThis Social Bookmark Button