Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I receive an error:
Unrecognized attribute 'configSource'. Note that attribute names are case-sensitive.
Am I missing something obvious here..?
Folder structure:
Root Folder Config EnvironmentConfiguration DistributedCalls.config UmbracoSettings.config web.config
Web.config
<umbracoConfiguration> <settings configSource="config\umbracoSettings.config" /> .... </umbracoConfiguration>
umbracoSettings.config
... <distributedCall configSource="EnvironmentConfigurations\DistributedCalls.config" /> ...
DistributedCalls.config
<?xml version="1.0"?> <!-- Used by umbracoSettings.config --> <distributedCall enable="false">
I think the problem here is that distributedCall isn't defined as a ConfigurationSection and so doesn't have a configSection property, to allow you to specify a seperate file as it's source.
https://msdn.microsoft.com/en-us/library/system.configuration.sectioninformation.configsource(v=vs.110).aspx
I think the goal here is to have different settings for each environment.
What we do is to create config transforms for the config files and create different publishing profiles for each environment.
Dave
tranforms are something we're looking to introduce shortly, but for this project the deadline is too close.
Here's an actual snippet..
web.config
<umbracoConfiguration> <settings configSource="config\umbracoSettings.config" /> <BaseRestExtensions configSource="config\BaseRestExtensions.config" /> <FileSystemProviders configSource="config\FileSystemProviders.config" /> <dashBoard configSource="config\Dashboard.config" /> </umbracoConfiguration>
Like Marc pointed out earlier this is not possible at the moment.
I think config transforms is the only option at the moment.
We use the same approach with Umbraco 6.2.4, working in production. I'#ll look into that project again.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Extracting distributedCall config into an environmental config
Hello,
I receive an error:
Am I missing something obvious here..?
Folder structure:
Web.config
umbracoSettings.config
DistributedCalls.config
I think the problem here is that distributedCall isn't defined as a ConfigurationSection and so doesn't have a configSection property, to allow you to specify a seperate file as it's source.
https://msdn.microsoft.com/en-us/library/system.configuration.sectioninformation.configsource(v=vs.110).aspx
I think the goal here is to have different settings for each environment.
What we do is to create config transforms for the config files and create different publishing profiles for each environment.
Dave
tranforms are something we're looking to introduce shortly, but for this project the deadline is too close.
Here's an actual snippet..
web.config
umbracoSettings.config
Like Marc pointed out earlier this is not possible at the moment.
I think config transforms is the only option at the moment.
Dave
We use the same approach with Umbraco 6.2.4, working in production. I'#ll look into that project again.
is working on a reply...