<?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 : PersistenceServerException (occasional)</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : PersistenceServerException (occasional)</description>
  <pubDate>Wed, 10 Jun 2026 04:17:06 -700</pubDate>
  <lastBuildDate>Thu, 25 Aug 2011 17:20:25 -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=2926</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>PersistenceServerException (occasional) :   PM.Connect and PM.IsConnected...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2926&amp;PID=11535#11535</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> 2926<br /><strong>Posted:</strong> 25-Aug-2011 at 5:20pm<br /><br />PM.Connect and PM.IsConnected are related to the PersistenceManager's connection to the PersistenceServer, so won't tell you anything about database connectivity.&nbsp; If you're not using a BOS the PM is always considered "connected".<div>&nbsp;</div><div>To check whether you can connect to the database you can use PM.CheckDataSourceKey(keyname), or if you already have the RdbKey, key.CheckConnection().&nbsp; Both methods do the same thing, and will try to open a connection to the database.</div><div>&nbsp;</div><div>DevForce creates a new connection for every query or save, so there's no way to "reconnect" per se.&nbsp; If the datasource cannot be reached the above methods will return "false", but there's no automatic retry or reconnect logic.&nbsp; </div><div>&nbsp;</div><div>If you suspect the network connection has been lost, you can also use the NetworkChange and NetworkInterface classes in .NET to help monitor connectivity.</div>]]>
   </description>
   <pubDate>Thu, 25 Aug 2011 17:20:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2926&amp;PID=11535#11535</guid>
  </item> 
  <item>
   <title>PersistenceServerException (occasional) : Hi, we have a small .NET Windows...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2926&amp;PID=11529#11529</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=360" rel="nofollow">yongbum75</a><br /><strong>Subject:</strong> 2926<br /><strong>Posted:</strong> 25-Aug-2011 at 3:43pm<br /><br /><span ="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; line-height: normal; "><div><span ="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; line-height: normal; ">Hi, we have a small .NET Windows app written a couple of years ago that uses DF Classic. &nbsp;It pulls data from a remote SQL server in our branch office. &nbsp;Occasionally I think there are blips and our interoffice VPN connections get lost. &nbsp;Needless to say, when it happens the app looses connection to the remote SQL server and returns the following error. &nbsp;Is there any way to check the connection state and programmatically reconnect like you can with the ADO.NET connection object? &nbsp;I tried PM.IsConnected() and PM.Connect() but it doesn't seem to work the way I expect it to. &nbsp;Any insight/help would be greatly appreciated! &nbsp;Thanks.</span></div><div><span ="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; line-height: normal; "><br></span></div>IdeaBlade.Persistence.<wbr>PersistenceServerException: &#091;DBNETLIB&#093;&#091;ConnectionOpen (Connect()).&#093;SQL Server does not exist or access denied. ---&gt; System.Data.OleDb.<wbr>OleDbException: &#091;DBNETLIB&#093;&#091;ConnectionOpen (Connect()).&#093;SQL Server does not exist or access denied.<br>&nbsp; at IdeaBlade.Persistence.<wbr>RemotingPersistenceServerProxy<wbr>.CheckConnection(Exception pException)<br>&nbsp; at IdeaBlade.Persistence.<wbr>PersistenceServerProxy.Fetch(<wbr>SessionBundle pBundle, IEntityQuery pQuery)<br>&nbsp; at IdeaBlade.Persistence.<wbr>PersistenceManager.<wbr>XFetchDataSet(IEntityQuery pEntityQuery)<br>&nbsp; --- End of inner exception stack trace ---<br>&nbsp; at IdeaBlade.Persistence.<wbr>PersistenceManager.<wbr>HandlePersistenceServerExcepti<wbr>on(Exception pException, Boolean pTryToHandle, PersistenceOperation pOperation)<br>&nbsp; at IdeaBlade.Persistence.<wbr>PersistenceManager.<wbr>XFetchDataSet(IEntityQuery pEntityQuery)<br>&nbsp; at IdeaBlade.Persistence.<wbr>PersistenceManager.XFetch(<wbr>IEntityFinder pEntityFinder, WorkState pWorkState)<br>&nbsp; at IdeaBlade.Persistence.<wbr>PersistenceManager.XFetch(<wbr>IEntityQuery pEntityQuery, QueryStrategy pQueryStrategy, WorkState pWorkState)<br>&nbsp; at IdeaBlade.Persistence.<wbr>PersistenceManager.<wbr>XGetEntities(IEntityQuery pEntityQuery, QueryStrategy pQueryStrategy, WorkState pWorkState)<br>&nbsp; at IdeaBlade.Persistence.<wbr>PersistenceManager.<wbr>GetEntities&#091;T&#093;(IEntityQuery pEntityQuery, QueryStrategy pQueryStrategy)<br>.....</span>]]>
   </description>
   <pubDate>Thu, 25 Aug 2011 15:43:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2926&amp;PID=11529#11529</guid>
  </item> 
 </channel>
</rss>