World is now on Opti ID! Learn more

Thomas Krantz
Jan 13, 2011
  6692
(0 votes)

CMO 2.0 and .NET 4 installation problems and solutions

When I installed CMO 2.0 on a CMS 6 site running .NET 4, I had some issues with the installer. Same problems on both my dev and production environment.

After the module installation in Deployment Center, the site does not start. Btw, why can’t I have the option to only install the necessary CMO services and application files? It’s a scary feeling to let an installer do what it wants to my production config files.

Web.config modifications

1. The installer pokes around in Web.config modifying some configSections, namely it adds some sections to system.web.extensions/scripting/webServices sectionGroup.

image

I’m not sure why but once these lines were removed I’m getting the next error.

2. The installer alters the targetFramework and set it to 3.5. I changed this back to 4.0

3. CMO adds some httphandlers that refers to a 3.5 assembly.

I needed to change this handler in order to get Live Monitor and the Thumbnail service working:

<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"/>

Which is located here:

image

Change it to:

<add name="svc-Integrated" path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, 
System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, 
PublicKeyToken=31bf3856ad364e35" resourceType="Unspecified" 
preCondition="integratedMode" />

KPI Settings throws an Exception

4. This is probably not a 4.0 issue but something caused by some cultureInfo thing. I don’t know.

In CMO/Campaigns/Settings you can click “KPI Settings” to configure KPI.

Iimage

This caused this one…

image

While I probably should have waited for a proper patch, I needed to get this running. So… at my own risk, I patched  C:\Program Files (x86)\EPiServer\CMS\6.0.530.\Install\Modules\CMO2.0.0.0\CMO\Units\Kpi\KpiSettingsEditor.ascx

image

I changed ValueToCompare to “0,01” with a comma instead.

App_Browsers

5. The browser or gateway element with ID “Safari1Plus” cannot be found.

image

I removed Safari.browser and Chrome.browser from the App_Browsers folder.

Done!

Jan 13, 2011

Comments

Please login to comment.
Latest blogs
Make Global Assets Site- and Language-Aware at Indexing Time

I had a support case the other day with a question around search on global assets on a multisite. This is the result of that investigation. This co...

dada | Jun 26, 2025

The remote server returned an error: (400) Bad Request – when configuring Azure Storage for an older Optimizely CMS site

How to fix a strange issue that occurred when I moved editor-uploaded files for some old Optimizely CMS 11 solutions to Azure Storage.

Tomas Hensrud Gulla | Jun 26, 2025 |

Enable Opal AI for your Optimizely products

Learn how to enable Opal AI, and meet your infinite workforce.

Tomas Hensrud Gulla | Jun 25, 2025 |

Deploying to Optimizely Frontend Hosting: A Practical Guide

Optimizely Frontend Hosting is a cloud-based solution for deploying headless frontend applications - currently supporting only Next.js projects. It...

Szymon Uryga | Jun 25, 2025

World on Opti ID

We're excited to announce that world.optimizely.com is now integrated with Opti ID! What does this mean for you? New Users:  You can now log in wit...

Patrick Lam | Jun 22, 2025

Avoid Scandinavian Letters in File Names in Optimizely CMS

Discover how Scandinavian letters in file names can break media in Optimizely CMS—and learn a simple code fix to automatically sanitize uploads for...

Henning Sjørbotten | Jun 19, 2025 |