<?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 : No datasource key found</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : No datasource key found</description>
  <pubDate>Fri, 10 Apr 2026 23:07:36 -700</pubDate>
  <lastBuildDate>Sun, 03 Feb 2013 08:51:37 -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=3969</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>No datasource key found :   Glad you got it working. The...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3969&amp;PID=15776#15776</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> 3969<br /><strong>Posted:</strong> 03-Feb-2013 at 8:51am<br /><br />Glad you got it working.&nbsp;&nbsp; The ibmmx should automatically regenerate if any part of the model changes, including the DbContext, so we'll follow up on that to see if there's a problem.]]>
   </description>
   <pubDate>Sun, 03 Feb 2013 08:51:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3969&amp;PID=15776#15776</guid>
  </item> 
  <item>
   <title>No datasource key found : Thanks Kim.  Once I deleted the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3969&amp;PID=15774#15774</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 3969<br /><strong>Posted:</strong> 03-Feb-2013 at 6:45am<br /><br />Thanks Kim.  Once I deleted the ibmmx file and let it regenerate, it started working.  I think the issue was that I added the DbContext after the original ibmmx file was generated, so that data was missing from it.<br /><br />Greg]]>
   </description>
   <pubDate>Sun, 03 Feb 2013 06:45:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3969&amp;PID=15774#15774</guid>
  </item> 
  <item>
   <title>No datasource key found :   Do you have a custom IDataSourceKeyResolver?...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3969&amp;PID=15773#15773</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> 3969<br /><strong>Posted:</strong> 02-Feb-2013 at 6:19pm<br /><br />Do you have a custom IDataSourceKeyResolver?&nbsp; I'm assuming not, but if so, check what it's doing.&nbsp; Also check that the .ibmmx is marked as an embedded resource.&nbsp; And finally, the debug log may have additional information on the processing preceding this error, and may prove helpful.]]>
   </description>
   <pubDate>Sat, 02 Feb 2013 18:19:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3969&amp;PID=15773#15773</guid>
  </item> 
  <item>
   <title>No datasource key found : OK, checked that, and the connection...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3969&amp;PID=15771#15771</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 3969<br /><strong>Posted:</strong> 02-Feb-2013 at 2:34pm<br /><br />OK, checked that, and the connection string is in web.config as well:<br /><br />&lt;add name="SecurityEntities" connectionString="Data Source=.;Initial Catalog=Jet31;Integrated Security= True;MultipleActiveResultSets=True;App=Jet" providerName="System.Data.SqlClient"  /&gt;<br /><br />But it still throws the same error.<span style="font-size:10px"><br /><br />Edited by gregweb - 02-Feb-2013 at 2:34pm</span>]]>
   </description>
   <pubDate>Sat, 02 Feb 2013 14:34:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3969&amp;PID=15771#15771</guid>
  </item> 
  <item>
   <title>No datasource key found :   At runtime, DevForce will...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3969&amp;PID=15770#15770</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> 3969<br /><strong>Posted:</strong> 02-Feb-2013 at 2:15pm<br /><br />At runtime, DevForce will look for the connection string in&nbsp;the web.config, or the app.config if a 2-tier Windows/WPF app.&nbsp; So make sure the connection string in your Security project is also in a config used at runtime.]]>
   </description>
   <pubDate>Sat, 02 Feb 2013 14:15:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3969&amp;PID=15770#15770</guid>
  </item> 
  <item>
   <title>No datasource key found : I have a Cocktail app set up using...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3969&amp;PID=15769#15769</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 3969<br /><strong>Posted:</strong> 02-Feb-2013 at 2:06pm<br /><br />I have a Cocktail app set up using the same security structure as TempHire except I am using SQL Server.<br /><br />When the LogInManager.Login() runs, it throws the error "No datasource key found for this entity type: Security.User.<br /><br />Yet the datasource key appears to be set up correctly:<br /><br />In the Security project, there is a App.Config with a connection string name "SecurityEntities" is configured.<br /><br />The SecurityDBContext has a DataSourceKey attribute set to "SecurityEntities"<br /><br />When I build the project the Build output shows the connection string is found:<br /><br />Creating metadata from EntityManager 'SecurityEntities'<br />1&gt;  Searching for connectionString named 'SecurityEntities': found<br />1&gt;  Model metadata created for SecurityEntities<br />1&gt;  Model metadata for SecurityEntities.ibmmx is unchanged<br /><br />The server log says: LoginException: Unable to login: No datasource key found for this entity type: Security.User<br /><br />I am not sure what else to look for to resolve.]]>
   </description>
   <pubDate>Sat, 02 Feb 2013 14:06:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3969&amp;PID=15769#15769</guid>
  </item> 
 </channel>
</rss>