TypeLoadException ImportSource

Feb 14, 2012 at 8:44 PM

Hi,

I am having a problem using preview 5

var catalog = new AggregateCatalog();
var container = new CompositionContainer(catalog);

catalog.Catalogs.Add(new DirectoryCatalog(path));

Throw me this exception

{System.TypeLoadException: Could not load type 'System.ComponentModel.Composition.ImportSource' from assembly 'System.ComponentModel.Composition.CodePlex, Version=4.1.2.0, Culture=neutral, PublicKeyToken=13e5ffd4e05db186'.}

Someone know how to solve this.

Thanks!!

Feb 14, 2012 at 9:14 PM

I was missing register the dlls into the GAC!!