tag:blogger.com,1999:blog-1143415379421433159.post7114637530795207326..comments2022-05-29T19:37:20.450+02:00Comments on Mind in the Water: Problems encountered when using MEF as a dependency injection containerWim Coenenhttp://www.blogger.com/profile/16314282132983289163noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-1143415379421433159.post-66965625769623773942013-02-14T16:20:28.880+01:002013-02-14T16:20:28.880+01:00Take a look at CompositionOptions.DisableSilentRej...Take a look at CompositionOptions.DisableSilentRejection:<br /><br />http://msdn.microsoft.com/en-us/library/ff603380.aspx<br /><br />That could help, at least for debuggin purposes.<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1143415379421433159.post-46771658134783198082012-02-03T19:41:49.487+01:002012-02-03T19:41:49.487+01:00Daniel's post is very good, I recently gave a ...Daniel's post is very good, I recently gave a code camp talk using his blog as a primary resource. I also had some ideas about integration testing using Composition.Diagnostics, <a href="https://ihadthisideaonce.wordpress.com/2012/01/31/stop-guessing-about-mef-composition-and-start-testing/" rel="nofollow">posted here.</a>Jimhttps://www.blogger.com/profile/12597718799581250594noreply@blogger.comtag:blogger.com,1999:blog-1143415379421433159.post-33923108280504038092011-06-17T18:18:35.039+02:002011-06-17T18:18:35.039+02:00You'll probably be happy to hear that in MEF v...You'll probably be happy to hear that in MEF vNext, there is a way to disable rejection so that it will throw an exception any time a part would be rejected. This should make it much easier to find the problem in systems where you don't expect anything to be rejected.<br /><br />Also I've written a <a href="http://blogs.msdn.com/b/dsplaisted/archive/2010/07/13/how-to-debug-and-diagnose-mef-failures.aspx" rel="nofollow">blog post</a> on MEF debugging. It has a little bit more information than the documentation you linked.Danielhttps://www.blogger.com/profile/07523811351761648797noreply@blogger.com