<?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 : Key error</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2012 : Key error</description>
  <pubDate>Fri, 10 Apr 2026 19:00:34 -700</pubDate>
  <lastBuildDate>Tue, 06 Nov 2012 14:53:42 -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=3767</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>Key error : Yea - this is where I went wrong....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15108#15108</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3767<br /><strong>Posted:</strong> 06-Nov-2012 at 2:53pm<br /><br />Yea - this is where I went wrong. I noticed Temphire (I was looking at a 2.0 version based on beta) had it so I assumed I needed it in mine]]>
   </description>
   <pubDate>Tue, 06 Nov 2012 14:53:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15108#15108</guid>
  </item> 
  <item>
   <title>Key error :   Originally posted by smi-markI...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15104#15104</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> 3767<br /><strong>Posted:</strong> 06-Nov-2012 at 10:13am<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by smi-mark</strong></em><br /><br />I had a custom DbContext but neglected to define any DbSet properties on it. Once I added these in it is working.<br><br>I still have the issue building my Model.SL project so I removed the DevForce.Common.Targets, I'm not sure why/how the Silverlight project would use this build task anyways.<br></td></tr></table><div><br></div><div>Mark,</div><div>As Kim says above. Remove the DevForce.cf file from all your Silverlight projects. The beta package added the cf file to all project types and there was a change in RTW that causes it to try to generate the metadata even in Silverlight. You can leave the build task as long as the project doesn't contain a .cf file.&nbsp;</div>]]>
   </description>
   <pubDate>Tue, 06 Nov 2012 10:13:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15104#15104</guid>
  </item> 
  <item>
   <title>Key error :    Interesting.  We should...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15101#15101</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> 3767<br /><strong>Posted:</strong> 06-Nov-2012 at 8:15am<br /><br />Interesting.  We should detect when the metadata collection is empty and throw a meaningful error, and not allow the license key problem you're seeing to occur.<div>&nbsp;</div><div>You're right you don't need the DevForce targets in your Silverlight project, since metadata is only built in the .NET project.  We've got an open defect to correct this.  You can also remove the .cf file from the project, which will also disable the EntityModelMetadataDeploy task.</div><div>&nbsp;</div><div>I'm glad you were able to resolve these.</div>]]>
   </description>
   <pubDate>Tue, 06 Nov 2012 08:15:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15101#15101</guid>
  </item> 
  <item>
   <title>Key error : I had a custom DbContext but neglected...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15099#15099</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3767<br /><strong>Posted:</strong> 06-Nov-2012 at 6:24am<br /><br />I had a custom DbContext but neglected to define any DbSet properties on it. Once I added these in it is working.<br><br>I still have the issue building my Model.SL project so I removed the DevForce.Common.Targets, I'm not sure why/how the Silverlight project would use this build task anyways.<br>]]>
   </description>
   <pubDate>Tue, 06 Nov 2012 06:24:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15099#15099</guid>
  </item> 
  <item>
   <title>Key error : I think I&amp;#039;ve found the problem....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15098#15098</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3767<br /><strong>Posted:</strong> 06-Nov-2012 at 5:57am<br /><br />I think I've found the problem. I think there is a metadata issue in my model. Looking at the SourceAssemblyName property on EntityModelMetadata, if it doesn't find any it will encrypt it with&nbsp; <font color="#800000">"&#091;Not available&#093;"</font>; so when it decrypts, it's obviously failing.&nbsp;]]>
   </description>
   <pubDate>Tue, 06 Nov 2012 05:57:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15098#15098</guid>
  </item> 
  <item>
   <title>Key error :   This is really odd. Do you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15095#15095</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> 3767<br /><strong>Posted:</strong> 05-Nov-2012 at 9:05pm<br /><br />This is really odd.&nbsp; Do you also have DevForce 2010 installed?]]>
   </description>
   <pubDate>Mon, 05 Nov 2012 21:05:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15095#15095</guid>
  </item> 
  <item>
   <title>Key error : DataCenterServer, Universal. I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15094#15094</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3767<br /><strong>Posted:</strong> 05-Nov-2012 at 6:23pm<br /><br />DataCenterServer, Universal. I believe I did re-enter my key. <br><br>I also have a problem building my Silverlight model dll. <br><br>Parameter:ProjectFile=C:\Path\Project\Dev\Source\Project\Project\Project.Model.SL\Project.Model.SL.csproj (TaskId:86)<br>&nbsp; Task Parameter:TargetFolder=C:\Path\Project\Dev\Source\Project\Project\Project.Model.SL (TaskId:86)<br>&nbsp; In EntityModelMetadataDeploy.&nbsp; Parms:&nbsp; Assembly='C:\Path\Project\Dev\Source\Project\Project\Project.Model.SL\Bin\Release\Project.Model.SL.dll', TargetFolder='C:\Path\Project\Dev\Source\Project\Project\Project.Model.SL' (TaskId:86)<br>&nbsp; IdeaBlade.VisualStudio.Build.Tasks, Version=7.0.2.0, Culture=neutral, PublicKeyToken=287b5094865421c0 (TaskId:86)<br>C:\Path\packages\IdeaBlade.DevForce.Aop.7.0.2\tools\IdeaBlade.DevForce.Common.targets(61,5): error MSB4018: The "EntityModelMetadataDeploy" task failed unexpectedly.<br>C:\Path\packages\IdeaBlade.DevForce.Aop.7.0.2\tools\IdeaBlade.DevForce.Common.targets(61,5): error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'Project.Model.SL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.<br>C:\Path\packages\IdeaBlade.DevForce.Aop.7.0.2\tools\IdeaBlade.DevForce.Common.targets(61,5): error MSB4018: File name: 'Project.Model.SL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'<br><br>(I've shortened the paths so it's easier to read)<br><br>As you can see in the trace log, the right dll is being passed to the Assembly property on EntityModelMetadataDeploy. Something just seems really odd. This happens on two machines that I have tested.<br><br>The dependencies on my model project are IdeaBlade, PostSharp.SL and Microsoft.CompilerServices.AsyncTargetingPack. Nothing special.<br>]]>
   </description>
   <pubDate>Mon, 05 Nov 2012 18:23:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15094#15094</guid>
  </item> 
  <item>
   <title>Key error :   Can you tell me what kind...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15093#15093</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> 3767<br /><strong>Posted:</strong> 05-Nov-2012 at 5:40pm<br /><br />Can you tell me what kind of key you have (eg, Universal)?&nbsp; Also, when you installed 7.0.2, did you re-enter your license key?]]>
   </description>
   <pubDate>Mon, 05 Nov 2012 17:40:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15093#15093</guid>
  </item> 
  <item>
   <title>Key error : I&amp;#039;ve patched it for now by...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15092#15092</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3767<br /><strong>Posted:</strong> 05-Nov-2012 at 2:50pm<br /><br />I've patched it for now by manually encrypting my key and placing it in my ibmmx. So somehow my ibmmx is not getting the right key.]]>
   </description>
   <pubDate>Mon, 05 Nov 2012 14:50:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15092#15092</guid>
  </item> 
  <item>
   <title>Key error : I&amp;#039;ve encountered a strange...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15091#15091</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3767<br /><strong>Posted:</strong> 05-Nov-2012 at 2:43pm<br /><br />I've encountered a strange issue when attempting to use code first. When the SL project reads the EncodedLicenseKey it is unable to decrypt it (See below) I've used the license key util and confirmed my product key in the registry is correct. I've deleted the ibmmx files, even remade my model.<br><br><br><img src="uploads/449/error.png" height="486" width="1439" border="0" /><br>]]>
   </description>
   <pubDate>Mon, 05 Nov 2012 14:43:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3767&amp;PID=15091#15091</guid>
  </item> 
 </channel>
</rss>