I'm using a DirectoryCatalog and one of the *.dll files in the directory is causing the constructor to throw a FileNotFoundException on certain machines.
The stack trace shows that the exception occurs in ComposablePartCatalogCollection.cs on this line:
IEnumerable<ComposablePartDefinition> items = item.Parts.ToArray();
when called from DirectoryCatalog.Initialize():
I found it odd that DirectoryCatalog.CreateAssemblyCatalogGuarded() purposely ignored FileNotFoundException and yet another section of the code wouldn't.
I added the same try/catch from CreateAssemblyCatalogGuarded within the DirectoryCatalog.Initialize() method's
foreach (string file in this._loadedFiles)
But obviously I don't want to rely on this change in the future.