<?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 : public static IEntityQuery -&gt; entityserverfault</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : public static IEntityQuery -&gt; entityserverfault</description>
  <pubDate>Thu, 21 May 2026 16:25:57 -700</pubDate>
  <lastBuildDate>Tue, 08 Jun 2010 18:46:02 -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=1815</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>public static IEntityQuery -&gt; entityserverfault : Yes, can you open a support case...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1815&amp;PID=7212#7212</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1815<br /><strong>Posted:</strong> 08-Jun-2010 at 6:46pm<br /><br />Yes, can you open a support case and send the debuglog files?&nbsp; (Also, reference this thread.)<DIV></DIV>]]>
   </description>
   <pubDate>Tue, 08 Jun 2010 18:46:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1815&amp;PID=7212#7212</guid>
  </item> 
  <item>
   <title>public static IEntityQuery -&gt; entityserverfault : Thanks for the update ting,I tested...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1815&amp;PID=7115#7115</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=453" rel="nofollow">enterprisetoday</a><br /><strong>Subject:</strong> 1815<br /><strong>Posted:</strong> 31-May-2010 at 5:10pm<br /><br />Thanks for the update ting,<br>I tested it again.<br><br>Note:<br>1. This is not under IIS,<br>2. Installed on a test ws2008 w/ sql server 2008.<br>3. I Don't think it's in the GAC then.<br><br>I redid my build projects just in case it was missing some files.&nbsp; It does make some sense that if this code works within visual studio, but one when it's installed as an application, then one can assume it's missing something.<br><br>They're too large here, would you like the debuglog.xml files?<br>]]>
   </description>
   <pubDate>Mon, 31 May 2010 17:10:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1815&amp;PID=7115#7115</guid>
  </item> 
  <item>
   <title>public static IEntityQuery -&gt; entityserverfault : I just found out that wesawcase...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1815&amp;PID=7097#7097</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1815<br /><strong>Posted:</strong> 28-May-2010 at 4:12pm<br /><br />I just found out that we&nbsp;saw&nbsp;case earlier this year where static initializers were failing under IIS.&nbsp; Make sure that you are deploying all the assemblies into the bin folder and that DevForce is not installed in the GAC. <DIV></DIV><span style="font-size:10px"><br /><br />Edited by ting - 28-May-2010 at 4:14pm</span>]]>
   </description>
   <pubDate>Fri, 28 May 2010 16:12:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1815&amp;PID=7097#7097</guid>
  </item> 
  <item>
   <title>public static IEntityQuery -&gt; entityserverfault : Hi ting,We discovered that while...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1815&amp;PID=6944#6944</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=453" rel="nofollow">enterprisetoday</a><br /><strong>Subject:</strong> 1815<br /><strong>Posted:</strong> 18-May-2010 at 5:31pm<br /><br />Hi ting,<br><br>We discovered that while the code worked when non-static, more testing caused it to fail in another (unrelated) area of the system. so we removed that code altogether.&nbsp; My guess is that if a Ledger entry is instantiated, then the query will fail (spectacularly) in some instances and pass this upwards. A try/catch here would prevent any disaster from taking out the whole application.<br><br>For this project, Mgr is defined as <br><br><font face="Times New Roman, Times, serif">public static DomainModelEntityManager Mgr</font><br><br>which sits in a common class in the domain model.<br>The query was called from a report:<br><br><font face="Times New Roman, Times, serif">var query = Ledger.reportBankingList<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Where l =&gt; l.TYPE == 2 &amp;&amp; l.PAY_METHOD ==1);</font><br><br>And the public decimal was called as:<br><br><font face="Times New Roman, Times, serif">labelFootCheque.DataBindings.Add("Text", DataSource, Ledger.PathFor(l =&gt; l.reportChequeTotal), "{0:c}");</font><br><br><br>]]>
   </description>
   <pubDate>Tue, 18 May 2010 17:31:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1815&amp;PID=6944#6944</guid>
  </item> 
  <item>
   <title>public static IEntityQuery -&gt; entityserverfault : Just to confirm, you&amp;#039;re saying...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1815&amp;PID=6921#6921</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1815<br /><strong>Posted:</strong> 17-May-2010 at 7:00pm<br /><br /><P>Just to confirm, you're saying the code works in n-tier if reportBankingList is not static?</P><DIV>It looks like this code is called on the server.&nbsp; Can you show how Mgr is defined and the context in which this query is called?</DIV><DIV>&nbsp;</DIV><DIV>Thanks.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 17 May 2010 19:00:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1815&amp;PID=6921#6921</guid>
  </item> 
  <item>
   <title>public static IEntityQuery -&gt; entityserverfault : Hi, We came accross this issue...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1815&amp;PID=6888#6888</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=453" rel="nofollow">enterprisetoday</a><br /><strong>Subject:</strong> 1815<br /><strong>Posted:</strong> 14-May-2010 at 9:32pm<br /><br />Hi,<br />We came accross this issue that stumped us.  It was not until we begun UAT with this release that we discovered this issue.  The codebase worked fine in visual studio, however our UAT configuration uses an n tier model. (clients connect to serverconsole over a lan).<br /><br />278&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;summary&gt;<br />279&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// Returns a query which the user can build upon with.<br />280&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// Returns all ledger entries between the date range.<br />281&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;/summary&gt;<br />282&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static IEntityQuery&lt;Ledger&gt; reportBankingList = Mgr.Ledgers<br />283&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Where(l =&gt; l.DATE &gt;= Report_startDate && l.DATE &lt;= Report_endDate);<br /><br />where Report_startDate and endDate are both public static datetimes.<br /><br />286&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;summary&gt;<br />287&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// reportXXXtotal, for use in BankingList report.<br />288&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// Returns the decimal value of the items requested for the date range set earlier.<br />289&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;/summary&gt;<br />290&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public decimal reportChequeTotal<br />291&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />292&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get<br />293&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />294&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  var query = reportBankingList<br />295&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Where(l =&gt; l.TYPE == 2 && l.PAY_METHOD == 1);<br />296&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />297&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  return query.Sum(l =&gt; l.AMOUNT * -1);<br />298&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />299&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />source="IdeaBlade.EntityModel.RemoteEntityServerProxy:ConfigureChannelFactory"&gt;Using NDC Serializer&lt;/entry&gt;<br />source="IdeaBlade.EntityModel.RemoteEntityServerProxy:ProgrammaticConfiguration"&gt;Created proxy to http://w4:9009/EntityServer_Production6 using ideablade.configuration section; binding is 'CustomBinding', contract is 'IdeaBlade.EntityModel.IEntityServerContract'&lt;/entry&gt;<br />source="IdeaBlade.EntityModel.EntityServerProxy:Fetch"&gt;System.ServiceModel.FaultException`1&#091;IdeaBlade.EntityModel.EntityServerFault&#093;: Type conflict:  the DefaultManager is currently of type EntityManager (Fault Detail is equal to IdeaBlade.EntityModel.EntityServerFault).&lt;/entry&gt;<br />source="IdeaBlade.EntityModel.EntityServerProxy:Fetch"&gt;System.ServiceModel.FaultException`1&#091;IdeaBlade.EntityModel.EntityServerFault&#093;: DomainModel.User must inherit from Entity and does not. (Fault Detail is equal to IdeaBlade.EntityModel.EntityServerFault).&lt;/entry&gt;<br /><br />This is the clients debuglog.xml file.  We received the errormessage description in dialog boxes on the client.<br /><br />We initially suspected build problems but eventually traced it down to the query.  btw, no issues if it's not static.  We could return a list of entities (which is our normal MO), however in this situation we wanted to further filter the results as the user has the option to pick and choose ledger entry types.<br />]]>
   </description>
   <pubDate>Fri, 14 May 2010 21:32:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1815&amp;PID=6888#6888</guid>
  </item> 
 </channel>
</rss>