Skip to content

Instantly share code, notes, and snippets.

View jonihietala's full-sized avatar

Joni Hietala jonihietala

View GitHub Profile
// https://stackoverflow.com/questions/4667078/how-to-retrieve-the-loaderexception-property
try
{
foreach (var asm in AppDomain.CurrentDomain.GetAssemblies())
{
asm.GetTypes();
}
}
catch (Exception ex)
{
2018-04-17 12:15:00,462 [1] ERROR EPiServer.Find.Commerce.FindCommerceInitializationModule: Could not apply catalog content conventions.
System.Reflection.ReflectionTypeLoadException: 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.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at EPiServer.Find.ClientConventions.NestedConventions.<>c__DisplayClass17_0.<MarkAllImplementationsAsNested>b__1(Assembly a)
at EPiServer.Find.Helpers.ListExtensions.ForEach[T](IEnumerable`1 value, Action`1 action)
at EPiServer.Find.ClientConventions.NestedConventions.MarkAllImplementationsAsNested(Type declaringType, String name)
at EPiServer.Find.ClientConventions.NestedConventions.ForInstancesOf[TSource,TListItem](Expression`1 exp)
at EPiServer.Find.ClientConventions.NestedConventionItemInstanceWrapper`1.Add[TListItem](Expression`1 expr)