<?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 : Switch IsDistrubuted based on if DB found</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Switch IsDistrubuted based on if DB found</description>
  <pubDate>Sat, 11 Apr 2026 20:33:39 -700</pubDate>
  <lastBuildDate>Wed, 17 Nov 2010 10:48:04 -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=2291</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>Switch IsDistrubuted based on if DB found : A connection string isused to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2291&amp;PID=9145#9145</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> 2291<br /><strong>Posted:</strong> 17-Nov-2010 at 10:48am<br /><br />A connection string is&nbsp;used to connect to a database; the IsDistributed flag on the &lt;clientSettings&gt; is used to connect to a BOS, when the flag is false the client does not connect to a BOS. &nbsp;Generally, when you are using a BOS all database connections are made from the BOS; likewise when not using a BOS all database connections are made from the local application.&nbsp; So, if IsDistributed is false, you are not using a BOS and any database connections are made using the connection strings in your client app.config.]]>
   </description>
   <pubDate>Wed, 17 Nov 2010 10:48:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2291&amp;PID=9145#9145</guid>
  </item> 
  <item>
   <title>Switch IsDistrubuted based on if DB found : I basically have it working but...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2291&amp;PID=9143#9143</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 2291<br /><strong>Posted:</strong> 17-Nov-2010 at 9:41am<br /><br />I basically have it working but I have a question.<DIV>&nbsp;</DIV><DIV>If I set the object server information in the app.config to point to the desired bos but have distributed set to false. Does it connect only using my Connection strings.</DIV><DIV>&nbsp;</DIV><DIV>Connection speeds seem to be slower and it sometimes crosses between the two. I see the difference because I had it pointing to the live BOS and connection strings to the dev db.</DIV>]]>
   </description>
   <pubDate>Wed, 17 Nov 2010 09:41:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2291&amp;PID=9143#9143</guid>
  </item> 
  <item>
   <title>Switch IsDistrubuted based on if DB found : This won&amp;#039;t work because once...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2291&amp;PID=9084#9084</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> 2291<br /><strong>Posted:</strong> 11-Nov-2010 at 2:07pm<br /><br />This won't work because once you've created an EntityManager it uses whatever configuration information was provided to it at its construction.&nbsp; Your second login on the same EntityManager uses exactly the same configuration and communication setup as before, and ignores the change in the IsDistributed flag.<DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 11 Nov 2010 14:07:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2291&amp;PID=9084#9084</guid>
  </item> 
  <item>
   <title>Switch IsDistrubuted based on if DB found : So, what I have attempted to do...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2291&amp;PID=9081#9081</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 2291<br /><strong>Posted:</strong> 11-Nov-2010 at 12:46pm<br /><br />So, what I have attempted to do was login. If it fails I then change the IsDistributed to true. In theory that should switch to the object server and run fine. But it still fails. The error is connection string is empty. If I make the change in the config file to distributed = true it passes on the first try. It just seems to not take the new setting into account.<DIV>&nbsp;</DIV><DIV>This is just testing:</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><P>try</P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P>{ </P><P></FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>LoginClientCore</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>.Instance.Login(m</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>EntityManager</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>, </FONT></FONT><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas>"guest"</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>, </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>string</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>.Empty, </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>string</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>.Empty);</P><P>}</P><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>catch</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> (System.</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>Exception</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> e)</P><P>{</P><P>IdeaBlade.Core.</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>IdeaBladeConfig</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>.Instance.ObjectServer.ClientSettings.IsDistributed = </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>true</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>;</P><P></FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>LoginClientCore</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>.Instance.Login(m</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>EntityManager</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>, </FONT></FONT><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas>"guest"</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>, </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>string</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>.Empty, </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>string</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>.Empty);</P><P>}</P></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Thu, 11 Nov 2010 12:46:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2291&amp;PID=9081#9081</guid>
  </item> 
  <item>
   <title>Switch IsDistrubuted based on if DB found : There&amp;#039;s nothing intrinsic...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2291&amp;PID=9065#9065</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> 2291<br /><strong>Posted:</strong> 10-Nov-2010 at 2:07pm<br /><br />There's nothing intrinsic within DevForce, but you can still do this.&nbsp; Before creating an EntityManager you can look at the ConnectionStrings; you can use IdeaBladeConfig.Instance.ConnectionStrings if you'd like.&nbsp; After you've determined whether to go distributed or not, then set the isDistributed flag: <DIV>&nbsp;&nbsp;&nbsp; IdeaBladeConfig.Instance.ObjectServer.ClientSettings.IsDistributed = x</DIV>]]>
   </description>
   <pubDate>Wed, 10 Nov 2010 14:07:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2291&amp;PID=9065#9065</guid>
  </item> 
  <item>
   <title>Switch IsDistrubuted based on if DB found : Is therea way to switch the IsDistrubted...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2291&amp;PID=9059#9059</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 2291<br /><strong>Posted:</strong> 10-Nov-2010 at 10:38am<br /><br />Is there&nbsp;a way to switch the IsDistrubted state if the database connection is not found using the connectionstring? At run time.]]>
   </description>
   <pubDate>Wed, 10 Nov 2010 10:38:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2291&amp;PID=9059#9059</guid>
  </item> 
 </channel>
</rss>