Role based configuration in Sitecore 8.2
#
IssueUniform configuration files are designed to use role-based configuration in Sitecore that was officialy introduced in Sitecore 9.0. For Sitecore 8.2 there is a module which provides this functionality and which was used as origin for the feature in Sitecore 9.0. If the module is not installed some Uniform configuration files might be applied incorrectly.
#
Solution#
Option 1:Install Sitecore-Configuration-Roles module from https://github.com/Sitecore/Sitecore-Configuration-Roles Define your ContentManagement and ContentDelivery environments.
#
Option 2:- Go to
\App_Config\Include\Uniform\Uniform.ItemBasedConfiguration.config
- Adjust the configuration as below and rename it to
\App_Config\Include\Uniform\Uniform.ItemBasedConfiguration.CM.config.disabled
<uniform> <services> <siteConfigurationService set:ref="uniform/services/itemBasedSiteConfigurationService" /> <itemBasedSiteConfigurationService set:type="Uniform.Services.ItemBasedSiteConfigurationService, Uniform.ItemBasedConfiguration"> <param desc="database">master</param> </itemBasedSiteConfigurationService> </services> </uniform>
- Adjust the configuration as below and rename it to
\App_Config\Include\Uniform\Uniform.ItemBasedConfiguration.CD.config.disabled
--- <uniform> <services> <siteConfigurationService set:ref="uniform/services/itemBasedSiteConfigurationService" /> <itemBasedSiteConfigurationService set:type="Uniform.Services.ItemBasedSiteConfigurationService, Uniform.ItemBasedConfiguration"> <param desc="database">web</param> </itemBasedSiteConfigurationService> </services> </uniform>---
- Delete
\App_Config\Include\Uniform\Uniform.ItemBasedConfiguration.config
file
Enable appropriate file on your CM
and CD
environments.
For the combined roles CM + CD
enable the file \App_Config\Include\Uniform\Uniform.ItemBasedConfiguration.CM.config