adding external .config files

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
6/1/2009 1:08:06 PM
Gravatar
Total Posts 51

adding external .config files

Hey Joe -

Quick question for you regarding upgrades: working on upgrading to the latest version, and over the last few months we've had to change some things in web.config that are not in the appSettings tag (specifically httpModule details.)  The changes are minor enough at this point that we can just restore what was there, but would these sections work the same as the appSettings list?  IE, could I create an httpModule.config file and reference it as you do user.config, so these settings are maintained externally?  Haven't tried this yet, just wondering if there's anything that would prevent this from working...

Thanks!

-Kevin

6/1/2009 1:17:01 PM
Gravatar
Total Posts 18439

Re: adding external .config files

Hi Kevin,

Unfortunately it doesn't work the same as appSettings. With appSettings the external file will override the settings of the same name in Web.config and we don't include the user.config file so we don't overwrite custom settings.

You can put other sections of Web.config in separate files but it  its not an override its just moving the section to that file. So even if we move it to another file it will replace that file on upgrade, whereas we don't ship a user.config so it never overwrites an existing one. You could use a custom named file but then you'd be back to editing the Web.config again to point to your custom file(s).

I wish all the sections supported overrides from user.config, it would make things a lot easier.

Best,

Joe

 

6/2/2009 7:19:18 AM
Gravatar
Total Posts 51

Re: adding external .config files

Hey Joe -

Thanks for your fast response.  Yeah, I found after the fact that that's just a detail of the web.config file that I was unaware of.  It is too bad that it doesn't accept overwrites everywhere.

As a side note, the recent upgrades, particularly the tabbed browsing and accordian support, have been fantastic.  Thanks for the amazing product!

You must sign in to post in the forums. This thread is closed to new posts.