EpiServer.Baselibrary.ClassFactoryException

 

Hi,

I have installed Epi Server 5 dlls on the production server. It has been working correctly on one of the servers. The other server where the application has been installed gives me EpiServer.BaseLibrary.ClassFactoryexception. The error is "FactoryId ContentFactoryChannel is already registered".

Also note that we register the EPiServer.ContentChannelService.dll in the web.config as shown below.

<episerver.baseLibrary>

<classFactories>

<add type="EPiServer.Implementation.DefaultBaseLibraryFactory, EPiServer.Implementation" id="ContentChannelFactory"> <register type="EPiServer.ContentChannels.ContentChannelAdministration, EPiServer.ContentChannelService" mappedType="EPiServer.ContentChannels.ObjectStoreContentChannelAdministration, EPiServer.ContentChannelService" /> <register type="EPiServer.BaseLibrary.IContentChannelHandler, EPiServer.ContentChannelService" mappedType="EPiServer.ContentChannels.ContentChannelHandler, EPiServer.ContentChannelService" /> </add> </classFactories> </episerver.baseLibrary>

 Since this occurs on Production environment, we are extremly concern & need your immediate assistance.

Thanks,

Amit Bhatia

#26597 Dec 12, 2008 9:57
  • Member since: 2001
     

    You should have seen another exception before this, which should help with the exact error.

    Do an iisreset and open the site to see the error message.

    /Steve

    #26603 Dec 12, 2008 12:20
  • Member since: 2010
     

    This can sometimes be if the wrong version is being referenced.  You may need something like:

     

     <register type="EPiServer.ContentChannels.ContentChannelAdministration, EPiServer, Version=5.2.375.7, Culture=neutral, PublicKeyToken=8fe83dea738b45b7" mappedType="EPiServer.ContentChannels.ObjectStoreContentChannelAdministration, EPiServer.ContentChannelService"/>

     

     

    You could also <clear /> out the already registered types

    #36762 Edited, Feb 10, 2010 12:50
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
Please login to post a reply