This topic is locked

How to make permanent changes to web.config

11/29/2018 11:18:08 AM
ASPRunner.NET Tips and tricks
admin

If you need to make permanent changes to web.config file that won't be overwritten by subsequent builds modify file C:\Program Files (x86)\ASPRunnerNET10.0\source\Web.config.

Pete K 3/15/2019



If you need to make permanent changes to web.config file that won't be overwritten by subsequent builds modify file C:\Program Files (x86)\ASPRunnerNET10.0\source\Web.config.


I've been meaning to ask this question for a while. I need a way to make persistent changes to web.config on a per-app basis. I want to store information in my web.config that is unique to each app. In thinking about how this might be accomplished, it seems to me that if ASPRunner simply made a copy of the master web.config each time a new project is created and stored it in the project's own /source folder, we could use that file to store app-specific information. Alternatively, we could place a partial config file in a specified location where ASPRunner would look at compile time and merge it with web.config.
If none of this is feasible, are there other ideas for storing and retrieving persistent app-specific information (other than in the database) within the ASPRunner.NET development model?

Pete K 3/15/2019

Never mind -- I've figured it out. After some research I hit upon adding a reference in web.config to an external app settings config file which merges the appSettings section upon compile. Google to the rescue. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=87359&image=1&table=forumreplies' class='bbc_emoticon' alt=';)' />