Error in Coveo 7 Search Interface

The other day I ran into an odd error while trying to configure the Search Interface for my newly installed Coveo 7 Front-End.  After firing up the front-end, I selected ‘Edit this Interface’. Under the ‘Search Hub’ tab selecting the ‘Content’ link caused the following error: Unable to cast object of type ‘Coveo.CES.Web.Search.Admin.AdditionalPagesConfigSection’ to type ‘Coveo.CES.Web.Search.Admin.AdditionalPagesConfigSection’.

Error message

After some frustated poking around, re-installing Coveo 7 and searching the internet (Coveo Support site included), I engaged with Coveo Support.

The Issue

It turns out the conflict arose from having Coveo 6.5 and Coveo 7 installed, side-by-side.  Apparently, the installer for Coveo 6.5 modifies the web.config for the .NET Framework.

The Fix

The clear up this issue, all you have to do is move the applicable config sections out of the .NET Framework web.config into the Coveo 6.5 admin web.config.

Go to your .NET Framework web.config (C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\web.config) remove the following config sections and add them to your Coveo web.config (C:\Program Files\Coveo Enterprise Search 6\Web\Web.config):

1. Move the <configSections><sectionGroup name=”coveoEnterpriseSearch”>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<sectionGroup name="coveoEnterpriseSearch">
    <section name="server" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="locations" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="strings" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="adminStrings" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="database" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="analytics" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="customerService" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="financial" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="errorDetails" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="options" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="activedirectory" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="additionalEditInterfacePages" type="Coveo.CES.Web.Search.Admin.AdditionalPagesConfigSection, Coveo.CES.Web.Search.SearchAdminSite, Version=6.0.0.0, Culture=neutral, PublicKeyToken=44110d16825221f2"/>
    <section name="taggersDefinition" type="Coveo.CES.Web.Search.Tagging.TaggersConfigSection, Coveo.CES.Web.Search, Version=6.0.0.0, Culture=neutral, PublicKeyToken=44110d16825221f2"/>
</sectionGroup>

 
2. Move the <configSections><sectionGroup name=”coveoCnlWeb”>

1
2
3
4
<sectionGroup name="coveoCnlWeb">
    <section name="customContent" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="compression" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>

 
3. Move the <configSections><sectionGroup name=”coveoCnl”>

1
2
3
<sectionGroup name="coveoCnl">
    <section name="strings" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>

 
4. Move the <coveoEnterpriseSearch> section

1
2
3
<coveoEnterpriseSearch>
    <locations coveoPath="C:\Program Files\Coveo Enterprise Search 6\Web\Coveo\" searchUri="http://localhost:8080" searchAdminUri="http://localhost:8080/SearchAdmin" helpUri="http://localhost:8080/Help/"></locations>
</coveoEnterpriseSearch>

Just to reiterate, These config sections should be removed from the .NET Framework web.config and added to the same location within the Coveo 6.5 web.config.

Leave a Reply