Try our conversational search powered by Generative AI!

Microsoft.IdentityModel and Microsoft.IdentityModel.Extensions nuget required for A/B testing to list KPI's


I had to install the Microsoft.IdentityModel.Extensions and Microsoft.IdentityModel nuget packages for the IKpi implementations to be listed.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at System.Linq.Enumerable.d__16`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at EPiServer.Marketing.Testing.Web.Repositories.KpiWebRepository.GetKpiTypes()
at EPiServer.Marketing.Testing.Web.Controllers.KpiStore.Get()

using "EPiServer.Marketing.Testing" version="2.2.3"

May 02, 2017 15:42


I got the same problem right now, but thoose 2 nugets did not help. frown

May 12, 2017 15:31

For me it was an obsolete nuget package, Microsoft.AspNet.SignalR.Owin. 

I wrote small method based on how EPiServer.Marketing.Testing.Web.Repositories.KpiWebRepository.GetKpiTypes() gets its types.

Published as gist:

public void TestForLoaderExceptions()
                    .SelectMany<Assembly, Type>((Func<Assembly, IEnumerable<Type>>)(s => (IEnumerable<Type>)s.GetTypes())).ToList();
            catch (ReflectionTypeLoadException e)
                foreach (var e2 in e.LoaderExceptions)
May 15, 2017 15:54
* 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.