Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Configuring EPiServer CMO 2 R2 to Support .NET 4.0

In order to run EPiServer CMO 2 R2 on ASP.NET 4.0 you will have to make manual configuration changes after that EPiServer CMO is deployed on an EPiServer CMS website running on .NET 4.

The files Chrome.browser and Safari.browser must be removed from App_Browsers site folder.

Update the web.config file with the following:

  1. Remove section group named system.web.extensions and its content under configuration/configSections if you get configuration error message regarding this section duplicate.
  2. Change compiler version to v4.0 under configuration/system.codedom/compilers:
    <system.codedom>
        <compilers>
          <compiler language="c#;cs;csharp" 
                    extension=".cs" 
                    type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                    warningLevel="4">
            <providerOption name="CompilerVersion" value="v4.0" />
            <providerOption name="WarnAsError" value="false" />
          </compiler>
          <compiler language="vb;vbs;visualbasic;vbscript" 
                    extension=".vb" 
                    type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                    warningLevel="4">
            <providerOption name="CompilerVersion" value="v4.0" />
            <providerOption name="OptionInfer" value="true" />
            <providerOption name="WarnAsError" value="false" />
          </compiler>
        </compilers>
      </system.codedom> ​
  3. Remove this service activation handler in system.webServer/handlers section of CmoWebServices and CMO/Trace locations:
    <add name="svc-Integrated" 
         path="*.svc" 
         verb="*" 
         type="System.ServiceModel.Activation.HttpHandler,System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" 
         resourceType="Unspecified" 
         preCondition="integratedMode" />  ​
  4. Add new service activation handler in system.webServer/handlers section of CmoWebServices and CMO/Trace locations:
    <add name="ServiceModel-4.0" 
         path="*.svc" verb="*" 
         type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
         preCondition="managedHandler,runtimeVersionv4.0" /> ​