<?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 : [Import] from a console application</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : [Import] from a console application</description>
  <pubDate>Sat, 11 Apr 2026 13:51:03 -700</pubDate>
  <lastBuildDate>Fri, 16 Mar 2012 10:09:54 -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=3328</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>[Import] from a console application :   Unfortunatley, if you insist...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3328&amp;PID=13002#13002</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> 3328<br /><strong>Posted:</strong> 16-Mar-2012 at 10:09am<br /><br />Unfortunatley, if you insist on moving forward with using Cocktail in a console app against my advise, I can't support you. I did not develop Cocktail to be used in a console app. I have no idea what might work and what not and what issues you might run into like this one.<div> </div><div>As I said before, DevForce already builds the catalog and composes the container. There's nothing to do. The warning you are getting is simply telling you that Cocktail didn't compose any of it's stuff into the container. You would configure it with Composition.Configure. Maybe that will do the trick if your ApplicationRepository depends on something that is not in the container, but if you are seeing IApplicationRepository, then MEF picked it up. It sounds like MEF fails trying to create an instance of the repository.</div>]]>
   </description>
   <pubDate>Fri, 16 Mar 2012 10:09:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3328&amp;PID=13002#13002</guid>
  </item> 
  <item>
   <title>[Import] from a console application :    Hello Marcel,I&amp;#039;ve got...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3328&amp;PID=13001#13001</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3328<br /><strong>Posted:</strong> 16-Mar-2012 at 8:44am<br /><br />Hello Marcel,<div>I've got a problem getting my IApplicationRepository... I check and it's as a part in the Container.Catalog...</div><div>&nbsp;</div><div>I got this log <a href="http://www.ideablade.com/forum/uploads/1136/a1.txt" target="_blank">uploads/1136/a1.txt</a></div><div>&nbsp;</div><div>I don't really know what to put in my program.cs to compose the container... I've seen that I've 7 exports but I can only access to one (<font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas">IEntityManagerProvider</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&lt;My</font></font><font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas">Entities</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&gt;) ... please tell me how to configure it..</font></font></div><div><font size="2" face="C&#111;nsolas"></font>&nbsp;</div><div><font size="2" face="C&#111;nsolas">I'm almost sure the problem is related to </font></div><div><font size="2" face="C&#111;nsolas"></font>&nbsp;</div><div><font size="2" face="C&#111;nsolas">2012-03-16 16:39:28&nbsp; Cocktail.Composition:WarnIfNotConfigured WARNING: Composition has not been configured. Not all types may be available. </font></div><div>&nbsp;</div><div>&nbsp;Thanks</div>]]>
   </description>
   <pubDate>Fri, 16 Mar 2012 08:44:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3328&amp;PID=13001#13001</guid>
  </item> 
  <item>
   <title>[Import] from a console application : You can&amp;#039;t use Cocktail in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3328&amp;PID=12997#12997</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> 3328<br /><strong>Posted:</strong> 16-Mar-2012 at 1:09am<br /><br />You can't use Cocktail in your console app if that's what you are trying to do. Cocktail brings dependencies to WPF with it. It might work, I've never tried it, but one really shouldn't. As it stands today, Cocktail only supports WPF and Silverlight clients. It doesn't support console apps and it doesn't support server-side apps. It is a framework to build GUI clients in WPF or Silverlight. <DIV>&nbsp;</DIV><DIV>What I meant is that MEF is still available in console apps. DevForce does its part and creates the catalog and container which are available through CompositionHost.Instance.</DIV><DIV>&nbsp;</DIV><DIV>So, if you have classes decorated with the &#091;Export&#093; attribute, they will automatically end up in the MEF catalog and then you can pull instances from the container, by using the helper methods on CompositionHost and/or use the MEF API directly to interact with CompositionHost.Instance.Container. </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 16 Mar 2012 01:09:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3328&amp;PID=12997#12997</guid>
  </item> 
  <item>
   <title>[Import] from a console application :   Hello Marcel,I&amp;#039;m getting...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3328&amp;PID=12990#12990</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3328<br /><strong>Posted:</strong> 15-Mar-2012 at 2:46am<br /><br />Hello Marcel,<div>I'm getting a bit lost... I have to add manually my repositories to the catalog, the MEF discovery isn't done in automatica way... and I don't have to create a framework boostrapper, am I rigth?</div>]]>
   </description>
   <pubDate>Thu, 15 Mar 2012 02:46:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3328&amp;PID=12990#12990</guid>
  </item> 
  <item>
   <title>[Import] from a console application :   MEF is available even in a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3328&amp;PID=12953#12953</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> 3328<br /><strong>Posted:</strong> 11-Mar-2012 at 12:53am<br /><br />MEF is available even in a console app and DevForce out of the box, makes sure that there's a container and catalog, so yes, you can do imports and exports. ]]>
   </description>
   <pubDate>Sun, 11 Mar 2012 00:53:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3328&amp;PID=12953#12953</guid>
  </item> 
  <item>
   <title>[Import] from a console application : Hello,I&amp;#039;ve got a WPF application...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3328&amp;PID=12947#12947</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3328<br /><strong>Posted:</strong> 09-Mar-2012 at 12:17pm<br /><br />Hello,<br>I've got a WPF application that works with an assembly to show reports (telerik reporting is the third part component)<br>Inside my wpf application I use the &#091;Import&#093; to injiect the application repository and it's ok...<br><br>I've been asked to create a console application that will generate report in a batch, was wondering how can I do the Import/Export of composition model considering I've got no bootstrapper... Can I define in the program.cs an export of the IApplicationRepository and IUserService?<br><br>Thanks<br>]]>
   </description>
   <pubDate>Fri, 09 Mar 2012 12:17:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3328&amp;PID=12947#12947</guid>
  </item> 
 </channel>
</rss>