Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

EPiServer.Marketing.Testing generates System.Web.Http.WebHost reference error


Added the Marketing package to our site running CMS 11.20.7 on .NET Framework 4.7.2. But after installing this on the developer machine I get the error

Could not load file or assembly 'System.Web.Http.WebHost, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.

With a stackTrace pointing to EPiServer.Marketing.Testing:

[InitializationException: Initialize action failed for Initialize on class EPiServer.Marketing.Testing.Web.Initializers.TestingControllerInitialization, EPiServer.Marketing.Testing.Web, Version=, Culture=neutral, PublicKeyToken=8fe83dea738b45b7]
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +812
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +194
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +879
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +226
   EPiServer.Global..ctor() +42
   Holmgrens.Web.EPiServerApplication..ctor() +37
   ASP.global_asax..ctor() +42

This is because the site is running version but I have the assembly redirect.

      <assemblyIdentity name="System.Web.Http.WebHost" publicKeyToken="31bf3856ad364e35" culture="neutral" />
      <bindingRedirect oldVersion="" newVersion="" />

Is there some way to get this working on this solution?

Feb 22, 2022 15:32
* 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.