Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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:
https://gist.github.com/perhemmingson/05d5b94b371558b6dfc1f52406f56c7a
public void TestForLoaderExceptions() { try { ((IEnumerable<Assembly>)AppDomain.CurrentDomain.GetAssemblies()) .SelectMany<Assembly, Type>((Func<Assembly, IEnumerable<Type>>)(s => (IEnumerable<Type>)s.GetTypes())).ToList(); } catch (ReflectionTypeLoadException e) { foreach (var e2 in e.LoaderExceptions) { Console.WriteLine(e2); } } }
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.d__16`2.MoveNext()
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at System.Linq.Enumerable.
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"