<?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 : Yet another error in 6.0.7.0</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Yet another error in 6.0.7.0</description>
  <pubDate>Thu, 14 May 2026 07:54:09 -700</pubDate>
  <lastBuildDate>Sat, 18 Dec 2010 03:02:56 -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=2375</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>Yet another error in 6.0.7.0 : But this code work whell in 6.0.6...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2375&amp;PID=9430#9430</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1024" rel="nofollow">jocker1331</a><br /><strong>Subject:</strong> 2375<br /><strong>Posted:</strong> 18-Dec-2010 at 3:02am<br /><br />But this code work whell in 6.0.6 ....<br>"I'm curious, though, why you want to use the ObjectDataSource" - why not?<br>"If you don't need paging" - i copy&amp;paste only example and my app need paging, groupping, etc.<br>]]>
   </description>
   <pubDate>Sat, 18 Dec 2010 03:02:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2375&amp;PID=9430#9430</guid>
  </item> 
  <item>
   <title>Yet another error in 6.0.7.0 : I&amp;#039;m surprised you got that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2375&amp;PID=9411#9411</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> 2375<br /><strong>Posted:</strong> 15-Dec-2010 at 11:33am<br /><br />I'm surprised you got that far, since the ObjectDataSource does not generally handle anonymous projections or projections into a type well.&nbsp;&nbsp; Since you did get this far, removing the orderby from your query and instead defining a SortDescriptor should get you past the problem. <DIV>&nbsp;</DIV><DIV>I'm curious, though, why you want to use the ObjectDataSource.&nbsp; If you don't need paging, and also apparently not grouping or filtering, it would probably be much easier to just load the query results directly into your grid and not bother with the ODS in the middle.</DIV>]]>
   </description>
   <pubDate>Wed, 15 Dec 2010 11:33:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2375&amp;PID=9411#9411</guid>
  </item> 
  <item>
   <title>Yet another error in 6.0.7.0 :   &#208;&#178; System.Linq.Expressions.Expression.FindMethod(Type...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2375&amp;PID=9400#9400</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1024" rel="nofollow">jocker1331</a><br /><strong>Subject:</strong> 2375<br /><strong>Posted:</strong> 14-Dec-2010 at 11:17am<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp; в System.Linq.Expressions.Expression.FindMethod(Type type, String methodName, Type&#091;&#093; typeArgs, Expression&#091;&#093; args, BindingFlags flags)<br>&nbsp;&nbsp; в System.Linq.Expressions.Expression.Call(Type type, String methodName, Type&#091;&#093; typeArguments, Expression&#091;&#093; arguments)<br>&nbsp;&nbsp; в IdeaBlade.Windows.EntityQueryPagedCollectionView.BuildOrderedQuery()<br>&nbsp;&nbsp; в IdeaBlade.Windows.EntityQueryPagedCollectionView.DoInitialLoad()<br>&nbsp;&nbsp; в IdeaBlade.Windows.EntityQueryPagedCollectionView.Refresh()<br>&nbsp;&nbsp; в IdeaBlade.Windows.ObjectDataSource.LoadView()<br>&nbsp;&nbsp; в IdeaBlade.Windows.ObjectDataSource.LoadCore()<br>&nbsp;&nbsp; в IdeaBlade.Windows.ObjectDataSource.ObjectDataSource_Loaded(Object sender, RoutedEventArgs e)<br>&nbsp;&nbsp; в MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)<br>&nbsp;&nbsp; в MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)<br></pre></td></tr></table><br>Exception text like: "There is no 'ThenBy' method in System.Linq.Queriable that can deal with same arguments.<br><br>ProblemDetails:<br><table width="99%"><tr><td><pre class="BBcode"><br>//resiltFileDds is a ObjectDataSource: &lt;ib:ObjectDataSource x:Name="infileDds" AutoLoad="False" PageSize="65000" LoadSize="65000"/&gt;<br><br>&nbsp; resiltFileDds.Query = (from resf in _dbCtx.ServiceTaskResultFileTemp<br>&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; join fd in _dbCtx.FileData on resf.FileDataId equals fd.Oid<br>&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 fd.GCRecord == null &amp;&amp; resf.ServiceTaskId == _someId<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }).With(QueryStrategy.DataSourceOnly);<br><br>resiltFileDds.Load(); ....<br></pre></td></tr></table><br><br><br>Log:<br><table width="99%"><tr><td><pre class="BBcode"><br>Fetch ... value(IdeaBlade.EntityModel.EntityQueryProxy`1&#091;CivilizationWeb.Models.ServiceTaskInitialFileTemp&#093;).Join(value(IdeaBlade.EntityModel.EntityQueryProxy`1&#091;CivilizationWeb.Models.FileData&#093;), inf =&gt; inf.FileDataId, fd =&gt; Convert(fd.Oid), (inf, fd) =&gt; new _IB_f__AnonymousType3`2x2127173938() {inf = inf, fd = fd}).Where(&lt;&gt;h__TransparentIdentifier1 =&gt; ((&lt;&gt;h__TransparentIdentifier1.fd.GCRecord == null) AndAlso (&lt;&gt;h__TransparentIdentifier1.inf.ServiceTaskId == 305))).Select(&lt;&gt;h__TransparentIdentifier1 =&gt; new DBTaskFileInfo() {FileName = &lt;&gt;h__TransparentIdentifier1.fd.FileName, Title = &lt;&gt;h__TransparentIdentifier1.inf.Name, Oid = &lt;&gt;h__TransparentIdentifier1.fd.Oid, ServiceTaskId = &lt;&gt;h__TransparentIdentifier1.inf.ServiceTaskInitialFileId, Date = &lt;&gt;h__TransparentIdentifier1.inf.Date}).OrderByDescending(ti =&gt; ti.Date).ThenBy(Param_0 =&gt; Param_0.Oid).Take(65000)<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Tue, 14 Dec 2010 11:17:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2375&amp;PID=9400#9400</guid>
  </item> 
 </channel>
</rss>