<?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 : Cannot connect to database or BOS - configuration problem</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Cannot connect to database or BOS - configuration problem</description>
  <pubDate>Thu, 16 Apr 2026 07:35:08 -700</pubDate>
  <lastBuildDate>Mon, 16 May 2011 11:22:24 -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=2678</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>Cannot connect to database or BOS - configuration problem : Sounds good. I&amp;#039;d like to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2678&amp;PID=10697#10697</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2678<br /><strong>Posted:</strong> 16-May-2011 at 11:22am<br /><br />Sounds good. I'd like to correct one of my statements as well.<div><br></div><div>"<span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">The name of your EntityManager must match with the name in your connections string".</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">That is incorrect. In the generated code, there's a DataSourceKeyName attribute that is applied to the sub-typed EntityManager. And that key name is what DevForce searches in the config file for the connection string.</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">Sorry for the confusion.</span></div>]]>
   </description>
   <pubDate>Mon, 16 May 2011 11:22:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2678&amp;PID=10697#10697</guid>
  </item> 
  <item>
   <title>Cannot connect to database or BOS - configuration problem : Bingo, that fixed it. Thanks for...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2678&amp;PID=10695#10695</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1151" rel="nofollow">Randar</a><br /><strong>Subject:</strong> 2678<br /><strong>Posted:</strong> 16-May-2011 at 7:14am<br /><br />Bingo, that fixed it.&nbsp; Thanks for the answer and link.]]>
   </description>
   <pubDate>Mon, 16 May 2011 07:14:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2678&amp;PID=10695#10695</guid>
  </item> 
  <item>
   <title>Cannot connect to database or BOS - configuration problem :  Hi Randar;The name of your EntityManager...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2678&amp;PID=10684#10684</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2678<br /><strong>Posted:</strong> 13-May-2011 at 3:00pm<br /><br />Hi Randar;<div><br></div><div>The name of your EntityManager must match with the name in your connections string. In this case, your EntityManager name is EntityManager_GL but in your connection string, you have JonasNET_Entities.</div><div><br></div><div>Please let me know if this fixes the problem. You can also see this page for more discussion on how DevForce handles data source keys as well as creating a dynamic connection string.</div><div><br></div><div><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/data-sources" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/data-sources</a></div><div><br></div><div>Hope this helps.</div><span style="font-size:10px"><br /><br />Edited by DenisK - 13-May-2011 at 3:06pm</span>]]>
   </description>
   <pubDate>Fri, 13 May 2011 15:00:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2678&amp;PID=10684#10684</guid>
  </item> 
  <item>
   <title>Cannot connect to database or BOS - configuration problem : I have taken an existing WinForm...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2678&amp;PID=10683#10683</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1151" rel="nofollow">Randar</a><br /><strong>Subject:</strong> 2678<br /><strong>Posted:</strong> 13-May-2011 at 2:17pm<br /><br />I have taken an existing WinForm application and trying to integrate with DevForce 2010.&nbsp; The problem is, every time i try to actually get an entity, I get the following:<br><br><i>Key 'EntityManager_GL': The connection string for Key 'EntityManager_GL' was not found or is invalid.&nbsp; Check that either a connectionStrings element or EdmKey is defined for this key in the configuration file, or implement a custom IDataSourceKeyResolver. </i><br><br>The EntityManager instantiates fine, or seems as soon as I call .ToList or .FirstOrDefault, I get that error.&nbsp; What I did was:<br><br>1) Created a new project that has my EDMX<br>2) Added a new BOS as a website on port 9009.&nbsp; This has a reference to my EDM project.&nbsp; Seems to load fine when I hit the EntityService.svc via a browser.<br>3) Added reference in my WinForm to IdeaBlade Core, EntityModel Linq and Validation and my EDM project.<br>4) Added the following to the App.Config for the WinForm.<br><br>&nbsp; &lt;configSections&gt;<br>&nbsp;&nbsp;&nbsp; &lt;section name="ideablade.configuration" type="IdeaBlade.Core.Configuration.IdeaBladeSection, IdeaBlade.Core"/&gt;<br>&nbsp; &lt;/configSections&gt;<br><br>&nbsp; &lt;connectionStrings&gt;<br>&nbsp;&nbsp;&nbsp; &lt;add name="JonasNET_Entities" connectionString="metadata=res://*/GL.csdl|res://*/GL.ssdl|res://*/GL.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;Data Source=localhost\sqlExpress;Initial Catalog=XXXXX;Persist Security Info=True;User ID=XXXXXX;Password=XXXXXX;MultipleActiveResultSets=True&amp;quot;" providerName="System.Data.EntityClient" /&gt;<br>&nbsp; &lt;/connectionStrings&gt;<br>&nbsp; <br>&nbsp; &lt;ideablade.configuration version="6.00" xmlns="http://schemas.ideablade.com/2010/IdeaBladeConfig"&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;logging logFile="DebugLog.xml"/&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;objectServer remoteBaseURL="http://localhost" serverPort="9009" serviceName="EntityService.svc" &gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;clientSettings isDistributed="true" /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/objectServer&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;!-- Additional configuration can be added to override defaults. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; See the sample config files in the Learning Resources for more information.<br>&nbsp;&nbsp;&nbsp; --&gt;<br><br>&nbsp; &lt;/ideablade.configuration&gt;<br><br><br>I've tried with both isDistributed and false and get the exact same error.&nbsp; I cannot figure out why it can't find the WS or my connection string.<br><br>Thoughts?&nbsp; What step did I miss?<br>]]>
   </description>
   <pubDate>Fri, 13 May 2011 14:17:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2678&amp;PID=10683#10683</guid>
  </item> 
 </channel>
</rss>