<?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 : Long error on join with where...</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Long error on join with where...</description>
  <pubDate>Tue, 21 Apr 2026 08:53:20 -700</pubDate>
  <lastBuildDate>Fri, 14 May 2010 19:28:05 -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=1793</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>Long error on join with where... : Sweet! Thanks for letting us know....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1793&amp;PID=6886#6886</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> 1793<br /><strong>Posted:</strong> 14-May-2010 at 7:28pm<br /><br />Sweet!&nbsp; Thanks for letting us know.]]>
   </description>
   <pubDate>Fri, 14 May 2010 19:28:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1793&amp;PID=6886#6886</guid>
  </item> 
  <item>
   <title>Long error on join with where... : Works perfectly, thanks!Cheers,Jason ...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1793&amp;PID=6870#6870</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 1793<br /><strong>Posted:</strong> 13-May-2010 at 7:27am<br /><br />Works perfectly, thanks!<br><br>Cheers,<br>&nbsp;Jason<br>]]>
   </description>
   <pubDate>Thu, 13 May 2010 07:27:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1793&amp;PID=6870#6870</guid>
  </item> 
  <item>
   <title>Long error on join with where... : That would make sense. This was...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1793&amp;PID=6839#6839</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 1793<br /><strong>Posted:</strong> 10-May-2010 at 6:16pm<br /><br />That would make sense. This was in a project converted from WCF RIA.<br>I'll try it later today and let you know.<br><br>Thanks,<br>&nbsp;Jason<br>]]>
   </description>
   <pubDate>Mon, 10 May 2010 18:16:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1793&amp;PID=6839#6839</guid>
  </item> 
  <item>
   <title>Long error on join with where... : I believe this has to do with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1793&amp;PID=6838#6838</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> 1793<br /><strong>Posted:</strong> 10-May-2010 at 5:10pm<br /><br /><DIV>I believe this has to do with a Silverlight assembly trust issue.&nbsp; In order to get the original query syntax to work, the assembly containing the query must grant trust to System.Core.&nbsp; We've modified the templates for DevForce 2010 to do this automatically, but if you&nbsp;didn't start from a DevForce 2010 template&nbsp;or you've created a new assembly, you will need to add this assembly level attribute to the AsssemblyInfo.cs file:<BR>&nbsp;<BR>&#091;assembly: InternalsVisibleTo("System.Core, PublicKey=00240000048000009400000006020000002400005253413100040000010001008d56c76f9e8649383049f383c44be0ec204181822a6c31cf5eb7ef486944d032188ea1d3920763712ccb12d75fb77e9811149e6148e5d32fbaab37611c1878ddc19e20ef135d0cb2cff2bfec3d115810c3d9069638fe4be215dbf795861920e5ab6f7db2e2ceef136ac23d5dd2bf031700aec232f6c6b1c785b4305c123b37ab")&#093;<BR></DIV><DIV>&nbsp;</DIV><DIV>Let us know if that works!</DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by ting - 10-May-2010 at 5:17pm</span>]]>
   </description>
   <pubDate>Mon, 10 May 2010 17:10:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1793&amp;PID=6838#6838</guid>
  </item> 
  <item>
   <title>Long error on join with where... : Ping!  </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1793&amp;PID=6832#6832</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 1793<br /><strong>Posted:</strong> 10-May-2010 at 7:05am<br /><br />Ping!]]>
   </description>
   <pubDate>Mon, 10 May 2010 07:05:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1793&amp;PID=6832#6832</guid>
  </item> 
  <item>
   <title>Long error on join with where... :  Trying a relatively simple query...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1793&amp;PID=6814#6814</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 1793<br /><strong>Posted:</strong> 06-May-2010 at 4:12pm<br /><br />Trying a relatively simple query with a join, but adding a Where clause causes a MethodAccessException:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Guid gid = custacct.CustomerAccountID;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IEntityQuery&lt;UserProfile&gt; query =<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from users in RepositoryDomainContext.UserProfiles<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; join p in RepositoryDomainContext.Permissions<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on users.UserProfileId equals p.UserProfileId<br>&nbsp;<font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; where p.ElementID == gid<br></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select users;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RepositoryDomainContext.ExecuteQueryAsync(query, cb =&gt; callback(cb.Results), null);<br><br>this results in the exception below.<br>Removing the where works perfectly, as does restructuring the query:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IEntityQuery&lt;UserProfile&gt; query =<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from users in RepositoryDomainContext.UserProfiles<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; join p in RepositoryDomainContext.Permissions<font color="#009900">.Where(pp =&gt; pp.ElementID == gid)</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on users.UserProfileId equals p.UserProfileId<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select users;<br><br>Any suggestions?<br><br>Cheers,<br>&nbsp;Jason<br><br>Exception:<br><font size="1">{System.MethodAccessException: Attempt by method 'System.Linq.Expressions.Expression.CreateLambda(System.Type, System.Linq.Expressions.Expression, System.String, Boolean, System.Collections.ObjectModel.ReadOnlyCollection`1&lt;System.Linq.Expressions.ParameterExpression&gt;)' to access method 'System.Linq.Expressions.Expression`1&lt;System.Func`2&lt;&lt;&gt;f__AnonymousType0`2&lt;QuestMetrics.Manager.Model.Data.UserProfile,QuestMetrics.Manager.Model.Data.Permission&gt;,System.Boolean&gt;&gt;.Create(System.Linq.Expressions.Expression, System.String, Boolean, System.Collections.ObjectModel.ReadOnlyCollection`1&lt;System.Linq.Expressions.ParameterExpression&gt;)' failed.<br>&nbsp;&nbsp; at System.RuntimeMethodHandle.PerformSecurityCheck(Object obj, RuntimeMethodHandleInternal method, RuntimeType parent, UInt32 invocationFlags)<br>&nbsp;&nbsp; at System.RuntimeMethodHandle.PerformSecurityCheck(Object obj, IRuntimeMethodInfo method, RuntimeType parent, UInt32 invocationFlags)<br>&nbsp;&nbsp; at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object&#091;&#093; parameters, CultureInfo culture, Boolean skipVisibilityChecks)<br>&nbsp;&nbsp; at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object&#091;&#093; parameters, CultureInfo culture)<br>&nbsp;&nbsp; at System.Linq.Expressions.Expression.CreateLambda(Type delegateType, Expression body, String name, Boolean tailCall, ReadOnlyCollection`1 parameters)<br>&nbsp;&nbsp; at System.Linq.Expressions.Expression.Lambda(Type delegateType, Expression body, String name, Boolean tailCall, IEnumerable`1 parameters)<br>&nbsp;&nbsp; at System.Linq.Expressions.Expression.Lambda(Type delegateType, Expression body, ParameterExpression&#091;&#093; parameters)<br>&nbsp;&nbsp; at IdeaBlade.Linq.TransformExpressionVisitor.VisitLambda(LambdaExpression le, Expression bodyExpr, IEnumerable`1 parameterExpressions)<br>&nbsp;&nbsp; at IdeaBlade.Linq.ExpressionVisitor.VisitExpressionCore(Expression e)<br>&nbsp;&nbsp; at IdeaBlade.Linq.TransformExpressionVisitor.VisitExpressionCore(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.Linq.LocalizingExpressionVisitor.VisitExpressionCore(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.Linq.ExpressionVisitor.VisitExpression(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.Linq.ExpressionVisitor.VisitExpressionCore(Expression e)<br>&nbsp;&nbsp; at IdeaBlade.Linq.TransformExpressionVisitor.VisitExpressionCore(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.Linq.LocalizingExpressionVisitor.VisitExpressionCore(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.Linq.ExpressionVisitor.VisitExpression(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.Linq.ExpressionVisitor.&lt;VisitExpressions&gt;b__0(Expression e)<br>&nbsp;&nbsp; at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()<br>&nbsp;&nbsp; at System.Linq.Buffer`1..ctor(IEnumerable`1 source)<br>&nbsp;&nbsp; at System.Linq.Enumerable.ToArray&#091;TSource&#093;(IEnumerable`1 source)<br>&nbsp;&nbsp; at IdeaBlade.Linq.ExpressionVisitor.VisitExpressions(IEnumerable`1 expressions)<br>&nbsp;&nbsp; at IdeaBlade.Linq.ExpressionVisitor.VisitExpressionCore(Expression e)<br>&nbsp;&nbsp; at IdeaBlade.Linq.TransformExpressionVisitor.VisitExpressionCore(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.Linq.LocalizingExpressionVisitor.VisitExpressionCore(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.Linq.ExpressionVisitor.VisitExpression(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.Linq.ExpressionVisitor.&lt;VisitExpressions&gt;b__0(Expression e)<br>&nbsp;&nbsp; at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()<br>&nbsp;&nbsp; at System.Linq.Buffer`1..ctor(IEnumerable`1 source)<br>&nbsp;&nbsp; at System.Linq.Enumerable.ToArray&#091;TSource&#093;(IEnumerable`1 source)<br>&nbsp;&nbsp; at IdeaBlade.Linq.ExpressionVisitor.VisitExpressions(IEnumerable`1 expressions)<br>&nbsp;&nbsp; at IdeaBlade.Linq.ExpressionVisitor.VisitExpressionCore(Expression e)<br>&nbsp;&nbsp; at IdeaBlade.Linq.TransformExpressionVisitor.VisitExpressionCore(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.Linq.LocalizingExpressionVisitor.VisitExpressionCore(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.Linq.ExpressionVisitor.VisitExpression(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.Linq.ExpressionVisitor.Visit(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.Linq.LocalizingExpressionVisitor.Visit(Expression expr)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.ServerEntityQuery..ctor(EntityQuery query)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQuery`1.GetServerQuery()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryFinder.get_ServerQuery()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryFinder.Execute()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteQueryCore(IEntityQuery query, Boolean isAsync)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.&lt;ExecuteQueryAsyncCore&gt;b__4c&#091;T&#093;(EntityQueryOperation`1 op)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.AsyncProcessor`1.Execute()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteQueryAsyncCore&#091;T&#093;(AsyncProcessor`1 processor)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteQueryAsync&#091;T&#093;(IEntityQuery`1 query, Action`1 userCallback, Object userState)<br>&nbsp;&nbsp; at QuestMetrics.Manager.DataModel.Repositories.PermissionRepository.GetUserProfilesWithPermissions(CustomerAccount custacct, Action`1 callback, Expression`1 filter)}</font><br><span style="font-size:10px"><br /><br />Edited by jsobell - 06-May-2010 at 4:13pm</span>]]>
   </description>
   <pubDate>Thu, 06 May 2010 16:12:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1793&amp;PID=6814#6814</guid>
  </item> 
 </channel>
</rss>