<?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 : IDataSourceKeyResolver and deployment</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : IDataSourceKeyResolver and deployment</description>
  <pubDate>Wed, 13 May 2026 08:00:58 -700</pubDate>
  <lastBuildDate>Wed, 21 Mar 2012 07:49:17 -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=3319</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>IDataSourceKeyResolver and deployment :   Now it all works!As you both...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=13047#13047</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1256" rel="nofollow">mikke63</a><br /><strong>Subject:</strong> 3319<br /><strong>Posted:</strong> 21-Mar-2012 at 7:49am<br /><br />Now it all works!<div></div><div SS_SSO_Identity="">As you both have suggested it turned out to be a wrong version of the Oracle Data Provider on the production server. It was one version older than on the development machine, and did not properly support Entity Framework.</div><div> </div><div SS_SSO_Identity="">Thanks for all help; I would have used some time to figure out the connection between the "general purpose" exception thrown by DevForce and the ODP version.</div><div> </div><div>Case closed,</div><div>Mikael</div>]]>
   </description>
   <pubDate>Wed, 21 Mar 2012 07:49:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=13047#13047</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver and deployment : I use Oracle and I have seen this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=13031#13031</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 3319<br /><strong>Posted:</strong> 20-Mar-2012 at 10:15am<br /><br /><P>I use Oracle and I have seen this in two cases.</P><DIV></DIV>1. The provider wasn't installed properly - 32bit vs 64bit vs version supporting proper parameters (but you aren't using any special params)<DIV>2. Debug mode ran differently than Release mode - even locally but it appeared the problem was only on the server (built in release mode).</DIV><DIV>&nbsp;</DIV><DIV>What version of IIS is prod? Is your windows 64bit? Is the server? Same version of odp.net?</DIV><DIV>&nbsp;</DIV><DIV>I wish you a quick resolution!</DIV>]]>
   </description>
   <pubDate>Tue, 20 Mar 2012 10:15:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=13031#13031</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver and deployment :   Thanks mikke63.   The connection...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=13023#13023</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> 3319<br /><strong>Posted:</strong> 19-Mar-2012 at 12:22pm<br /><br />Thanks mikke63.   The connection string does look OK.  I've seen reports of problems with single/double quotes within a connection string, but that doesn't appear to be the problem.<div>&nbsp;</div><div>Is there any possibility that you can trap the exception and inspect the inner exception(s)?   DevForce is throwing that exception when an ArgumentException is raised when opening the EF ObjectContext, and it appears that an ArgumentException can be thrown for any number of reasons.   Since the problem occurs only when deployed, I'd guess a configuration-related problem, either with the Oracle provider or IIS.  Here's a promising link to someone reporting a problem with their data provider - <a href="http://forums.asp.net/t/1692257.aspx/1" target="_blank">http://forums.asp.net/t/1692257.aspx/1</a>.</div>]]>
   </description>
   <pubDate>Mon, 19 Mar 2012 12:22:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=13023#13023</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver and deployment :    I&amp;#039;veput in som logging...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=13020#13020</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1256" rel="nofollow">mikke63</a><br /><strong>Subject:</strong> 3319<br /><strong>Posted:</strong> 19-Mar-2012 at 1:17am<br /><br /><div>I've&nbsp;put in som logging to the GetKey method. The complete log file is attached&nbsp;for completness.</div><div>&nbsp;</div>As the last part of the log file shows&nbsp;my GetKey method is called as expected. The default connection string is fetched according to the keyName argument, and then modified as&nbsp;defined by the keyExtension argument. Finally the new connection string is wrapped in a ClientEdmKey with the assembled keyName and returned.<div>&nbsp;</div><div><a href="uploads/1256/DebugLog1.txt" target="_blank">uploads/1256/DebugLog1.txt</a></div><span style="font-size:10px"><br /><br />Edited by mikke63 - 19-Mar-2012 at 1:21am</span>]]>
   </description>
   <pubDate>Mon, 19 Mar 2012 01:17:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=13020#13020</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver and deployment :   I will put in someTraceFns...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12967#12967</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1256" rel="nofollow">mikke63</a><br /><strong>Subject:</strong> 3319<br /><strong>Posted:</strong> 13-Mar-2012 at 6:33am<br /><br />I will put in some&nbsp;TraceFns later this week.&nbsp;Will post back here as soon as I have some more info.]]>
   </description>
   <pubDate>Tue, 13 Mar 2012 06:33:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12967#12967</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver and deployment :   Denis is out sick today, so...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12958#12958</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> 3319<br /><strong>Posted:</strong> 12-Mar-2012 at 2:47pm<br /><br />Denis is out sick today, so I'll try to help.<div>&nbsp;</div><div>The error message you're getting is somewhat general purpose, and would most commonly indicate that your IDataSourceKeyResolver hasn't been found.&nbsp; Since your implementation has been found, then the next question is what is its GetKey method returning, and why does DevForce (or EF) think it's invalid?&nbsp; If you can add TraceFns diagnostic messages to your code that will help isolate the problem.&nbsp; The TraceFns messages will be written to the debug log, along with DevForce log messages, and are a handy tool for diagnosing problems outside of Visual Studio.&nbsp; If it's not possible to modify the code ... then we'll have to think of Plan B.</div>]]>
   </description>
   <pubDate>Mon, 12 Mar 2012 14:47:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12958#12958</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver and deployment :   Sorry for being unclear; the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12956#12956</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1256" rel="nofollow">mikke63</a><br /><strong>Subject:</strong> 3319<br /><strong>Posted:</strong> 12-Mar-2012 at 4:07am<br /><br />Sorry for being unclear; the above&nbsp;log file entry verifying probing and discovery&nbsp;is fetched from the deployed application, i.e. not when run from VS2010.]]>
   </description>
   <pubDate>Mon, 12 Mar 2012 04:07:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12956#12956</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver and deployment : Thanks for the info. That&amp;#039;s...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12933#12933</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> 3319<br /><strong>Posted:</strong> 08-Mar-2012 at 11:19am<br /><br />Thanks for the info. That's good to know. Now the next thing to check is if the log shows the same thing i.e. discovered your non-default IDataSourceKeyResolver when <b>not run</b> from within VS 2010.<div><br></div><div>My guess is it doesn't since it's throwing the exception above. Verify that the assembly containing PilenKlage.DevForceDataSource is also deployed, probed and discovered.</div>]]>
   </description>
   <pubDate>Thu, 08 Mar 2012 11:19:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12933#12933</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver and deployment :   Hi,The probing/discovery seems...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12921#12921</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1256" rel="nofollow">mikke63</a><br /><strong>Subject:</strong> 3319<br /><strong>Posted:</strong> 08-Mar-2012 at 12:48am<br /><br />Hi,<div></div><div></div>The probing/discovery seems to&nbsp;be successfull. This entry is found in the log file:<div></div><div SS_SSO_Identity=""><em><strong>CompositionContext: '-IbDefault-' - Probed for non-default 'IDataSourceKeyResolver' and found 'PilenKlage.DevForceDataSource'.</strong></em></div><div></div><div SS_SSO_Identity="">I have also verified that&nbsp;the&nbsp;GetKey method runs to completion and does what it should.&nbsp;As mentioned above, it all works when run from within Visual Studio 2010.</div><div SS_SSO_Identity="">&nbsp;</div><div SS_SSO_Identity="">Any other ideas?</div><div SS_SSO_Identity="">&nbsp;</div><div SS_SSO_Identity="">Thanks</div>]]>
   </description>
   <pubDate>Thu, 08 Mar 2012 00:48:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12921#12921</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver and deployment : Hi mikke63,You might want to ensure...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12915#12915</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> 3319<br /><strong>Posted:</strong> 07-Mar-2012 at 4:22pm<br /><br />Hi mikke63,<div><br></div><div>You might want to ensure that the assembly containing your custom IDataSourceKeyResolver is being probed and discovered. The debug log will contain more detailed information regarding this.</div><div><br></div><div>See&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/logged-info" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/logged-info</a>&nbsp;for more info.</div>]]>
   </description>
   <pubDate>Wed, 07 Mar 2012 16:22:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12915#12915</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver and deployment :   I have a MVC3 application...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12905#12905</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1256" rel="nofollow">mikke63</a><br /><strong>Subject:</strong> 3319<br /><strong>Posted:</strong> 07-Mar-2012 at 3:24am<br /><br />I have a MVC3 application using DevForce&nbsp;6.1.6.0. Depending on url parameters I want to access different databases / using different crendetials. This is solved&nbsp;by creating my own IDataSourceKeyResolver class, putting the connection logic in the GetKey method.<div>&nbsp;</div>Running from&nbsp;Visual Studio 2010 using the development server this works excellent and the application switches databases as required. But when deployed to server I get this&nbsp;exception:<div>&nbsp;</div><div SS_SSO_Identity=""><em><strong>Key 'Entities_Dynamic1': The connection string for Key 'Entities_Dynamic1' was not found or is invalid. A default IdeaBladeConfig is in use and does not contain either connectionStrings or EdmKeys. Ensure a valid configuration file containing connection information is present, or implement a custom IDataSourceKeyResolver.</strong></em></div><div SS_SSO_Identity="">&nbsp;</div><div>What am I missing in the deployment or server&nbsp;configuration? (The most frustrating&nbsp;is that I experienced this same&nbsp;exception early in the development process, but I'm completely unable to remember how I fixed it.)</div><div>&nbsp;</div><div SS_SSO_Identity="">Thanks</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 07 Mar 2012 03:24:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3319&amp;PID=12905#12905</guid>
  </item> 
 </channel>
</rss>