전체상품목록 바로가기

본문 바로가기


var catalog = new DirectoryCatalog(@"path"); var container = new CompositionContainer(catalog); try container.ComposeParts(this); catch (CompositionException ce) Console.WriteLine(ce.Message); foreach (var e in ce.Errors) Console.WriteLine(e.Description);

public class SafeDirectoryCatalog : ComposablePartCatalog

MEF loads your DLL → .NET loader tries to resolve dependencies → fails → MEF wraps the error as “cannot load component.”

This is a detailed, technical deep-dive into the error, commonly encountered in applications using the Managed Extensibility Framework (MEF), such as Dynamo for Revit , Sandbox , Rhino/Grasshopper (with MEF), or custom .NET host apps.