Take the community feedback survey now.

Thomas Krantz
Jan 13, 2011
  9537
(2 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

Jan 14, 2011 04:00 AM

Great!

Another way to solve the validation error without changing CMO source code (In case you are not enable English language).

1. Enable English language
2. Modify your EpiserverFramwork.config as below:

Jan 20, 2011 09:15 AM

I get the same error on a standard CMS 6 installation with CMO 2.0 running .net 3.5. I am not sure of the reason though (might have something to do with the date format) but this is what I have found out;

The error occurs if the user logged in has a different "Display language" than system language (e.g.. "en") and is not a part of the group "administrators".

Changing the display language to "system language" (en) fixed the issue on my installation.

Karoline Klever
Karoline Klever Feb 3, 2011 02:14 PM

Very useful blogpost! I got the KPI Settings exception as well, but this fixed it :)

You didn't happen to have any problems with the Thumbnail service? It worked like a charm on my laptop, but when I installed it in production the thumbnails created are images of an error page displaying "Navigation to the webpage was cancelled".

Dmytro Duk
Dmytro Duk Feb 7, 2011 06:00 PM

Thank you! We will do our best to fix these things.

Karoline, request to thumbnail service can take some time, it deppends also on environmant configuration and network settings. Default image is returned if request to thumbnail service is too long. In this case we try to generate thumbnail asynchronously to display it next time.
Please let me know if you still have problem with thumbnail generation, it can be also related to server security settings.

Dmytro Duk
Dmytro Duk May 11, 2011 07:37 PM

Hi all,

I have published workaround for CMO 2.0 that should solve localization issues. You can find it here: http://world.episerver.com/Blogs/Dmytro-Duk/Dates/2011/5/Localization-workaround-for-EPiServer-CMO-20/

See also description of additional configuration for Thumbnail service installed on Windows Server 2008 R2: http://world.episerver.com/Documentation/Items/Installation-Instructions/EPiServer-CMO/CMO-20/Configuring-the-Thumbnail-Service-on-Windows-Service-2008-R2/

Please login to comment.
Latest blogs
Opal Core Concepts

Before you dive into the code, it's crucial to understand the foundational ideas that make Opal tick. Core concepts are consistent across all its...

K Khan | Sep 13, 2025

Optimizely Opal : Reimagining A Utility Sector Use Case

  Introduction Customer engagement through timely and personalized push notifications plays a crucial role in todays Digital First landscape. In th...

Ratish | Sep 12, 2025 |

A day in the life of an Optimizely OMVP - AEO & GEO: The Future of Digital Visibility with Optimizely

The way people discover content online is undergoing a seismic shift. Traditional SEO is no longer enough. With AI-powered tools like ChatGPT,...

Graham Carr | Sep 12, 2025

Building Optimizely OCP Apps Faster with AI and Coding Assistants

Developing Optimizely Connect Platform (OCP) apps can be a rewarding but complex process—especially when integrating with external APIs. Over the...

Pawel Zieba | Sep 11, 2025