13 votes

ContextConfig

This library allows you to set configuration values dependent upon which web server environment the code is currently running. Environments are defined using the hostname (url) from which the page is operating using a basic XML config file.

Multiple hostnames can be set for each environment. You can also add an optional "catch-all" wildcard domain indicating which environment should be assumed if the current domain doesn't match any that have been predefined.

NEW in v1.1:

“Override Configuration Manager” Mode: When enabled, any calls to ConfigurationManager.AppSettings["key"] will utilize ContextConfig data, when available, and fallback to use web.config settings if no matching key is found in the ContextConfig.config. To disable - Just set  OverrideConfigurationManager="false" in the config.

Screenshots

Package owner

Heather Floyd

Heather Floyd

Heather has 1032 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions: 7.2.x, 7.1.x, 7.0.x

Package Information

  • Package owner: Heather Floyd
  • Created: 03/07/2014
  • Current version 1.1
  • License GNU GPL v3.0
  • Downloads on Our: 1.1K