<?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 : EF5 error on -update-database</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2012 : EF5 error on -update-database</description>
  <pubDate>Fri, 10 Apr 2026 20:25:46 -700</pubDate>
  <lastBuildDate>Fri, 28 Sep 2012 15:23:39 -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=3667</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>EF5 error on -update-database :   I&amp;#039;ve had VS crash on...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14666#14666</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3667<br /><strong>Posted:</strong> 28-Sep-2012 at 3:23pm<br /><br />I've had VS crash on me before too.&nbsp; Make sure you've installed the RTM, as it is more stable.<div>&nbsp;</div><div>PostSharp is moving towards a&nbsp;NuGet only distribution, which is what DF2012 is using to install its PostSharp support.&nbsp; I admit we're still learning about the changes too, but&nbsp;the PostSharp Project Settings tab is not available when PostSharp is installed via NuGet, so that's why you don't see it.&nbsp; It might still be provided if you download the PostSharp exe, but I haven't checked.</div><div>&nbsp;</div><div>Our DF2012 documentation, especially migration documentation, is still a work in progress, so I know that can make things even more frustrating.</div><div>&nbsp;</div><div>Thanks for your feedback.</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Fri, 28 Sep 2012 15:23:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14666#14666</guid>
  </item> 
  <item>
   <title>EF5 error on -update-database : Kim, thank you for the information!...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14665#14665</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1508" rel="nofollow">asuvorov</a><br /><strong>Subject:</strong> 3667<br /><strong>Posted:</strong> 28-Sep-2012 at 3:01pm<br /><br /><div>Kim, thank you for the information! So, DF2012 does not support enums yet, huh? Okay, then I should not bother with migrating to VS2012, not now at least. I'll rollback.</div><div><br></div><div>I've installed VS2012 just today and tried to migrate my project to that. Surprisingly I got VS crashed couple of times just while typing something in editor. Also I am having problems with Postsharp, it does not show me its settings in project's properties anymore. I've tried to&nbsp;re-install it&nbsp;several times but did not get it fixed. I guess I need to check it with PostSharp guys.</div><div><br></div><div>Probably I was inaccurate saying that DF2012 is flimsy, I did not mean that, sorry. That was just my frustration related to wasted work day. I cannot use DF2012 yet, but believe it will be solid as a rock when all important bugs get fixed. &nbsp;It's a great stuff after all, I look forward to using it in my projects.&nbsp;</div><div><br></div><div>Thanks!</div>]]>
   </description>
   <pubDate>Fri, 28 Sep 2012 15:01:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14665#14665</guid>
  </item> 
  <item>
   <title>EF5 error on -update-database :   Sorry to hear that, Aleksey....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14661#14661</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3667<br /><strong>Posted:</strong> 28-Sep-2012 at 2:11pm<br /><br />Sorry to hear that, Aleksey.&nbsp; <div>&nbsp;</div><div>The is the first beta release of both Cocktail 2012 and DevForce 2012, so there are bound to be some issues.</div><div>&nbsp;</div><div>What other areas have you found to be flimsy?&nbsp; &nbsp;</div><div>&nbsp;</div><div>I should add, too, that although DF2012 is using EF 5, it doesn't yet support Enum types, that's coming soon.</div>]]>
   </description>
   <pubDate>Fri, 28 Sep 2012 14:11:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14661#14661</guid>
  </item> 
  <item>
   <title>EF5 error on -update-database : Just confirm the same issue on...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14660#14660</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1508" rel="nofollow">asuvorov</a><br /><strong>Subject:</strong> 3667<br /><strong>Posted:</strong> 28-Sep-2012 at 1:34pm<br /><br />Just confirm the same issue on my side.<div><br></div><div>I've been working on my VS2010 DevForce2010 project and everything was great until I decided to upgrade to VS2012. Why I needed that is a long story (EF5 enums -&gt; .Net 4.5 -&gt; VS2012 -&gt; DF2012). Overall this bundle VS2012+DevForce2012 looks quite flimsy. Maybe I need time to get used to this but so far these two betas kill me. :(</div>]]>
   </description>
   <pubDate>Fri, 28 Sep 2012 13:34:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14660#14660</guid>
  </item> 
  <item>
   <title>EF5 error on -update-database :  OK, I believe you :). If you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14616#14616</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3667<br /><strong>Posted:</strong> 26-Sep-2012 at 12:02pm<br /><br />OK, I believe you :).&nbsp;&nbsp; If you install the DevForce Code First NuGet package to a project, in addition to adding the assembly references and .cf file it injects both PostSharp and DevForce into the MSBuild pipeline.&nbsp; The presence of the .cf file is what will trigger DevForce to try its EntityModelMetadataDeploy task, and that's probably what's failing here.&nbsp; If a project doesn't have a CF model, it's best not to install the Code First NuGet package to it to avoid the MSBuild injections.<div>&nbsp;</div><div>Thanks again for reporting this.</div>]]>
   </description>
   <pubDate>Wed, 26 Sep 2012 12:02:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14616#14616</guid>
  </item> 
  <item>
   <title>EF5 error on -update-database : No really I think it&amp;#039;s the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14614#14614</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=998" rel="nofollow">Walid</a><br /><strong>Subject:</strong> 3667<br /><strong>Posted:</strong> 26-Sep-2012 at 11:37am<br /><br />No really I think it's the .cf file which cause the error.<br /><br />I tried to run update-database multiple times and each try failed when the file was there.<br />My settings in VS2012 doesn't allow more than 1 build in parallel to avoid the CF build issue (works fine like this, just take more time).<br />Once I deleted this file nuget was working.<br /><br /><br />I just made a quick test.<br />1. I did run update-database (no .cf file) =&gt; it worked<br />2. I added the .cf file and run update-database =&gt; it failed<br />3. run update-database =&gt; it failed<br />4. run update-database =&gt; it failed<br />5. delete the .cf file and run update-database =&gt; it worked<br />5. run update-database =&gt; it worked<br /><br /><br />So imo the presence of this file cause the error.<br />]]>
   </description>
   <pubDate>Wed, 26 Sep 2012 11:37:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14614#14614</guid>
  </item> 
  <item>
   <title>EF5 error on -update-database :   Thanks Walid.It looks like...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14612#14612</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3667<br /><strong>Posted:</strong> 26-Sep-2012 at 11:24am<br /><br />Thanks Walid.<div>&nbsp;</div><div>It looks like the build of the startup project will always fail the first time if there are multiple Code First models in the solution.&nbsp; It wasn't removing the .cf file that fixed it, it was just the subsequent build.&nbsp; But you don't need, or want, the .cf file anywhere other than in your Code First model projects, so it's a good idea to get rid of it.</div><div>&nbsp;</div><div>The multi-model CF build problem is one we're aware of, and we know it's a huge pain.&nbsp; We're working on a fix.</div>]]>
   </description>
   <pubDate>Wed, 26 Sep 2012 11:24:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14612#14612</guid>
  </item> 
  <item>
   <title>EF5 error on -update-database :  Hi,Having Code first models,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14607#14607</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=998" rel="nofollow">Walid</a><br /><strong>Subject:</strong> 3667<br /><strong>Posted:</strong> 26-Sep-2012 at 5:46am<br /><br />Hi,<div><br></div><div>Having Code first models, I wanted to recreate my database using nuget (update-database ...).</div><div><br></div><div>I kept having this error:</div><div><br></div><div><div>PM&gt; Update-Database -StartUpProjectName:"xxx.Application.Web" -ErrorVariable:myerror&nbsp;</div><div><font color="#ff0000">The project 'xxx.Application.Web' failed to build.</font></div></div><div><br></div><div><div>PM&gt; $myerror</div><div>The project 'xxx.Application.Web' failed to build.</div><div>Au caractère C:\Dev\MigrationDFandCocktail2012\xxx\packages\EntityFramework.5.0.0\tools\EntityFramework.psm1:605 : 9</div><div>+ &nbsp; &nbsp; &nbsp; &nbsp; throw "The project '$projectName' failed to build."</div><div>+ &nbsp; &nbsp; &nbsp; &nbsp; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div><div>&nbsp; &nbsp; + CategoryInfo &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: OperationStopped: (The project 'xx...ailed to build.:String) &#091;&#093;, RuntimeException</div><div>&nbsp; &nbsp; + FullyQualifiedErrorId : The project 'xxx.Application.Web' failed to build.</div></div><div><br></div><div><br></div><div>The whole solution build in VS2012 !</div><div><br></div><div>This error was due to the presence of a <b>devforce.cf</b> file in the web project. I deleted it and the migration worked.</div><div>I have no clue why because of this file the build fail in nuget but not in VS.</div><div><br></div><div>I shared this, maybe some might have the same problem.</div><div><br></div><div><br></div><div><br></div><span style="font-size:10px"><br /><br />Edited by Walid - 26-Sep-2012 at 5:51am</span>]]>
   </description>
   <pubDate>Wed, 26 Sep 2012 05:46:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3667&amp;PID=14607#14607</guid>
  </item> 
 </channel>
</rss>