Config file changes in Sitecore CMS and DMS 7.0 rev. 130424 compared to CMS and DMS 6.6.0 rev.130311
This update requires you to make changes to the following files:
- /Web.config
The clean configuration files for Sitecore CMS and DMS 7.0 rev. 130424 can be downloaded using the following links:
Changes to the Web.config file:
The following changes have been made to the Web.config file of Sitecore CMS 7.0 rev. 130424 as compared to the Web.config file of Sitecore CMS 6.6.0 rev. 130404 (Update-5):
- Skip this step if you use MVC. In the <configSections> section, change version of section groups "system.web.extensions", "scripting" and "webServices" to 4.0.0.0:<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
</sectionGroup>
</sectionGroup>
</sectionGroup> - In the <events> section, add a node for a new “item:transferred” event:<event name="item:transferred" />
- In the <events> section, add two new events “publish:complete” and “publish:complete:remote”:<!-- publish:complete
Raised when publishing for all languages and targets (i.e. publish options) is complete. -->
<event name="publish:complete" />
<!-- publish:complete:remote
Raised when publishing for all languages and targets (i.e. publish options) is complete on a remote Sitecore instance. -->
<event name="publish:complete:remote" /> - In the <search> section, add the following parameter node to the <analyzer> of type Lucene.Net.Analysis.Standard.StandardAnalyzer:<analyzer type="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net">
<param hint="version">Lucene_30</param>
</analyzer> - In the <search> section, add the following node between “categorizer” and “configuration”:<xpathquerytranslator type="Sitecore.Search.Queries.QueryToSearchTranslator, Sitecore.Kernel" singleInstance="true" />
- In the <mediaLibrary>< mediaTypes> section, add new media type definitions:<mediaType name="PPTX File" extensions="pptx">
<mimeType>application/vnd.openxmlformats-officedocument.presentationml.presentation</mimeType>
<forceDownload>true</forceDownload>
<sharedTemplate>system/media/unversioned/file</sharedTemplate>
<versionedTemplate>system/media/versioned/file</versionedTemplate>
</mediaType>
<mediaType name="PPT File" extensions="ppt">
<mimeType>application/vnd.ms-powerpoint</mimeType>
<forceDownload>true</forceDownload>
<sharedTemplate>system/media/unversioned/file</sharedTemplate>
<versionedTemplate>system/media/versioned/file</versionedTemplate>
</mediaType>
<mediaType name="XLSX File" extensions="xlsx">
<mimeType>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mimeType>
<forceDownload>true</forceDownload>
<sharedTemplate>system/media/unversioned/file</sharedTemplate>
<versionedTemplate>system/media/versioned/file</versionedTemplate>
</mediaType>
<mediaType name="XLS File" extensions="xls">
<mimeType>application/vnd.ms-excel</mimeType>
<forceDownload>true</forceDownload>
<sharedTemplate>system/media/unversioned/file</sharedTemplate>
<versionedTemplate>system/media/versioned/file</versionedTemplate>
</mediaType> - The default value of the EnableEventQueues setting has been changed from "false" to "true". Also, the comment has been updated to reflect the new default value:<!-- ENABLE EVENT QUEUES
If enabled, Sitecore sends local events to the event queue available to remote instances,
and handles events in the queue from remote instances.
Default value: true
-->
<setting name="EnableEventQueues" value="true" /> - The default value of the Indexing.ServerSpecificProperties setting has been changed from "false" to "true":<!-- INDEX PROPERTIES PER SERVER
Indicates if server specific keys should be used for property values (such as 'last updated').
Default value: true
-->
<setting name="Indexing.ServerSpecificProperties" value="true" /> - In the <log4net> section, add the following appenders:<appender name="SearchLogFileAppender" type="log4net.Appender.SitecoreLogFileAppender, Sitecore.Logging">
<file value="$(dataFolder)/logs/Search.log.{date}.txt" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%4t %d{ABSOLUTE} %-5p %m%n" />
</layout>
</appender>
<appender name="CrawlingLogFileAppender" type="log4net.Appender.SitecoreLogFileAppender, Sitecore.Logging">
<file value="$(dataFolder)/logs/Crawling.log.{date}.txt" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%4t %d{ABSOLUTE} %-5p %m%n" />
</layout>
</appender> - In the <log4net> section, add the following loggers:<logger name="Sitecore.Diagnostics.Search" additivity="false">
<level value="INFO" />
<appender-ref ref="SearchLogFileAppender" />
</logger>
<logger name="Sitecore.Diagnostics.Crawling" additivity="false">
<level value="INFO" />
<appender-ref ref="CrawlingLogFileAppender" />
</logger> - Skip this step if you use MVC. In the <system.webServer><modules> section, change version of ScriptModule to 4.0.0.0:<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- In the <system.webServer><handlers> section, change path to script processor of WebDAVRoot and WebDAVRoot64 handlers and their precondition parameter:<add name="WebDAVRoot" path="*" verb="OPTIONS,PROPFIND" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
<add name="WebDAVRoot64" path="*" verb="OPTIONS,PROPFIND" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness64" /> - Skip this step if you use MVC. In the <system.webServer><handlers> section, change version in type of ScriptHandlerFactory, ScriptHandlerFactoryAppServices, ScriptResource:<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> - In the <system.web><pages><controls> section, change version of assembly System.Web.Extensions:<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> - Skip this step if you use MVC. In the <system.web><httpModules> section, change version of ScriptModule to 4.0.0.0:<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- Skip this step if you use MVC. In the <system.web>< httpHandlers> section, change version of ScriptHandlerFactory and ScriptResourceHandler to 4.0.0.0:<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> - In the <compilation> section, add attribute “targetFramework” in the <compilation> section:<compilation defaultLanguage="c#" debug="false" targetFramework="4.5">
- Skip this step if you use MVC. In the <compilation> section update the version of the <add> node for "System.Data.Linq" to 4.0.0.0. Also, remove <add> nodes related to System.Core, System.Web.Extensions, System.Xml.Linq, System.Data.DataSetExtensions. The
<compilation> section looks like this in a default Sitecore 7.0 installation:
<compilation defaultLanguage="c#" debug="false" targetFramework="4.5">
<assemblies>
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation> - Skip this step isf you use MVC. It is only applicable if you upgrade a solution where MVC is disabled. In the <system.codedom><compilers><compiler> section, change the version of compiler type to 4.0.0.0 and change the value of attribute “value” from “v3.5” to “v4.0” for providerOption with name CompilerVersion. The <compilers> section looks like this in a default Sitecore 7.0 installation:<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v4.0" />
<providerOption name="WarnAsError" value="false" />
</compiler>
</compilers>
</system.codedom> - Skip this step if you use MVC. It is only applicable if you upgrade a solution where MVC is disabled. In the <runtime><assemblyBinding> add a new node for the Newtonsoft.Json assembly. Remove the nodes related to the System.Web.Extensions and the System.Web.Extensions.Design assemblies. Change newVersion attribute for Lucene.Net assembly. The <assemblyBinding> section looks like this in a default Sitecore 7.0 installation:<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Lucene.Net" publicKeyToken="85089178b9ac3181" />
<bindingRedirect oldVersion="0.0.0.0-2.9.4.0" newVersion="3.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-3.5.0.0" newVersion="4.5.0.0" />
</dependentAssembly>
</assemblyBinding>