WIERD: Cant change webconfig in 2.0?

V

VB Programmer

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!
 
V

VB Programmer

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.
 

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

Top