U4-115 - Consolidate configs

Created by Morten Christensen 12 Jul 2012, 13:02:33 Updated by Anders Brohäll 22 Nov 2013, 08:59:39

Relates to: U4-2435

Relates to: U4-58

Relates to: U4-954

Relates to: U4-2434

Parent for: U4-58

Parent for: U4-1770

Parent for: U4-2415

Parent for: U4-2434

Parent for: U4-2435

Parent for: U4-2742

Parent for: U4-2767

Parent for: U4-2846

Parent for: U4-2900

Consolidate configs (move as much as possible away from web.config appsettings, connection string to connstrings section, etc).

Consolidation:

  • Moving appSettings and connectionStrings from web.config to separate config files (Niels request)
  • --Removing restExtensions.config this will no longer do anything--
  • --Remove xsltExtensions.config - these can be registered via attributes--
  • Potentially remove scripting.config -> can create these capabilities as a package to exist outside the core?

Default values:

Most of this is documented here for now: https://groups.google.com/forum/?fromgroups=#!searchin/umbraco-dev/default$20config/umbraco-dev/rYIb-qfCSSo/t1SJ5-It4bwJ

Comments

Sebastiaan Janssen 10 Sep 2012, 12:33:59

Due to time constraints we're moving this to a later release.


Shannon Deminick 29 Aug 2013, 05:01:03

Just going to document what we are doing here:

Consolidation:

  • Moving appSettings and connectionStrings from web.config to separate config files (Niels request)
  • Removing restExtensions.config this will no longer do anything
  • Potentially combine application and tree configs
  • Remove xsltExtensions.config - these can be registered via attributes
  • Potentially remove scripting.config -> can create these capabilities as a package to exist outside the core?
  • Move feedProxy.config into umbracoSettings.config

Default values:

Most of this is documented here for now: https://groups.google.com/forum/?fromgroups=#!searchin/umbraco-dev/default$20config/umbraco-dev/rYIb-qfCSSo/t1SJ5-It4bwJ


Anders Brohäll 22 Nov 2013, 08:24:33

This isn't the best of decisions, having appsettings in a separate config file breaks Nugets ability to make updates in web.config. Per example installing Elmah.

I do understand why you want to have a separate file, but since Nuget rocks (a lot), i'm not sure if it is preferred until Nuget can handle it.


Sebastiaan Janssen 22 Nov 2013, 08:33:08

I've just installed elmah from nuget. Works. Got a better example?


Anders Brohäll 22 Nov 2013, 08:38:53

Didn't it write appsettings inside web.config?


Sebastiaan Janssen 22 Nov 2013, 08:46:06

I did get some things in web.config, no new appSettings section though. elmah.1.2.2


Anders Brohäll 22 Nov 2013, 08:56:51

Weird. Im on Win8.1, VS2012 (11.0.61030.00 Update 4), Elmah: 1.2.14706.955, Elmah.MVC 2.0.0.0. IIS 8.5 running .NET 4.5, MVC4.

This is whats bothering me:

.... giving me: Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: A section using 'configSource' may contain no other attributes or elements.


Anders Brohäll 22 Nov 2013, 08:58:35

... moving the -elements into appsettings.config solves the problem, but i'm not to fund of solutions that requires tweaks.


Anders Brohäll 22 Nov 2013, 08:59:39

... installing Elmah w/: Install-Package Elmah.MVC in Package Manager Console in VS.


Priority: Normal

Type: Feature (planned)

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category: Architecture

Backwards Compatible: False

Fix Submitted:

Affected versions:

Due in version: 7.0.0

Sprint:

Story Points:

Cycle: