Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

DefaultBaseLibraryFactory returning wrong version


Upgrading to 7.5 has broken a number of unit tests. The probklem is with DefaultBaseLibraryFactory

I'm using the DefaultBaseLibraryFactory to set the language during unit tests. Unfortunately it is returning the wrong version - it returns version 7.0.* rather than 7.5.*

Does anyone know how to get it to return the correct (upgraded) version of the dll

Many Thanks for any/all help

The code is

    ClassFactory.Instance = new DefaultBaseLibraryFactory(String.Empty);

The config is     

      <add type="EPiServer.Implementation.DefaultBaseLibraryFactory, EPiServer.Implementation" id="ContentChannelFactory">
        <register type="EPiServer.ContentChannels.ContentChannelAdministration, EPiServer" mappedType="EPiServer.ContentChannels.ObjectStoreContentChannelAdministration, EPiServer" />
        <register type="EPiServer.BaseLibrary.IContentChannelHandler, EPiServer" mappedType="EPiServer.ContentChannels.ContentChannelHandler, EPiServer" />
      <add type="EPiServer.Core.PropertyControlClassFactory, EPiServer" id="PropertyControlFactory" />



Jan 07, 2014 11:26

Is EPiServer.Implementation.dll deployed to the output of your unit test project? If not add a reference to the assembly (the 7.5 version) from your unit test project and make sure the reference has "Copy local" set to true.

Jan 08, 2014 11:57

Hi Johan 

Thank you - that was it. I should have spotted it really



Jan 08, 2014 12:27
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.