<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Cocktail probing exe files</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Cocktail probing exe files</description>
  <pubDate>Tue, 12 May 2026 23:36:12 -700</pubDate>
  <lastBuildDate>Thu, 09 Aug 2012 13:26:02 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3573</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Cocktail probing exe files :  Are you handling the unhandled...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3573&amp;PID=14164#14164</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3573<br /><strong>Posted:</strong> 09-Aug-2012 at 1:26pm<br /><br />Are you handling the unhandled exceptions in the boostrapper? That's where you should be able to catch everything unless Caliburn.Micro eats up the exception if it can't find the root view model. I have to look at this.<div>&nbsp;</div><div>On the probing topic, that's a DevForce/MEF thing. Because there is no manifest in WPF, the only way DevForce/Cocktail can build up the catalog is by probing every assembly in the same folder as your exe. That's the default behaviour. MEF doesn't differentiate between exe and dll, they are all just assemblies. This is actually a powerful feature, because it allows you to have a plug-in model, but yes it can result in what you are describing that it is picking things up that it shouldn't.</div><div>&nbsp;</div><div>DevForce let's you control the probing, though. You'll basically have to exculde the files you don't want it to probe. See the following link.</div><div>&nbsp;</div><div><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/discovery" target="_blank"><u><font color="#0066cc">http://drc.ideablade.com/xwiki/bin/view/Documentation/discovery</font></u></a></div>]]>
   </description>
   <pubDate>Thu, 09 Aug 2012 13:26:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3573&amp;PID=14164#14164</guid>
  </item> 
  <item>
   <title>Cocktail probing exe files : We had a problem recently that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3573&amp;PID=14163#14163</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1009" rel="nofollow">JohnBloom</a><br /><strong>Subject:</strong> 3573<br /><strong>Posted:</strong> 09-Aug-2012 at 10:29am<br /><br />We had a problem recently that had us stumped for a whole day. We switched to a continuous integration model for our server side WPF application. The CI uses build scripts to compile and deploy every checkin. It compiles everything into a buildartifacts folder and then we take the build and generate an installer. One of the keys to this problem is that we had three&nbsp;separate&nbsp;executables&nbsp;that needed to be deployed together.&nbsp;<div><br></div><div>However, our apps stopped working when we deployed them. They would crash without an error message and we would have to look at event viewer to see the crash report. We eventually found the problem to be that MEF was probing the other exe files and we had a EntityManagerFactory export per app. The app would fail because it was only expecting one import but found many. We also had the habit of naming the first viewmodel MainViewModel. This would fail as well because the bootstrapper would find multiple imports for the one view model it was expecting.</div><div><br></div><div>Two questions arise from this.&nbsp;</div><div><br></div><div><b>First</b>, our WPF error handling is lacking and I was wondering if there is a way to catch all errors, even ones as early as importing the VM into the bootstrapper, and show them without having to go to event viewer (which was not helpful at all).&nbsp;</div><div><br></div><div><b>Second</b>, why is Cocktail probing other exe files (or is this a MEF default). Shouldnt it only probe dlls? It seems like if you have code you would like to share it should be in a dll and not in an exe.</div>]]>
   </description>
   <pubDate>Thu, 09 Aug 2012 10:29:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3573&amp;PID=14163#14163</guid>
  </item> 
 </channel>
</rss>