Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4022864
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:31:44+00:00 2026-05-20T10:31:44+00:00

using the following LINQ query: EntityQuery<Questions> query = context.GetQuestionsQuery() .Where(o => o.SurveyQuestions.Any(o2 => o2.SurveyID

  • 0

using the following LINQ query:

EntityQuery<Questions> query = context.GetQuestionsQuery()
                  .Where(o => o.SurveyQuestions.Any(o2 => o2.SurveyID == 3));

However when using LINQPad…it works fine.

Questions.Where(o => o.SurveyQuestions.Any(o2 => o2.SurveyID == 3)).Dump();

is this a limitation of Silverlight? If so How can i do the same thing in a silverlight friendly way? On a little more investigation this looks like its being caused in the DomainContext.Load operation.

Webpage error details

User Agent: Mozilla/4.0 (compatible;
MSIE 7.0; Windows NT 5.1; Trident/4.0;
.NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322)
Timestamp: Mon, 28 Feb 2011 18:06:11
UTC

Message: Unhandled Error in
Silverlight 2 Application Query
operator ‘Any’ is not supported. at
System.ServiceModel.DomainServices.Client.WebDomainClient1.BeginQueryCore(EntityQuery
query, AsyncCallback callback, Object
userState) at
System.ServiceModel.DomainServices.Client.DomainClient.BeginQuery(EntityQuery
query, AsyncCallback callback, Object
userState) at
System.ServiceModel.DomainServices.Client.DomainContext.Load(EntityQuery
query, LoadBehavior loadBehavior,
Action
1 callback, Object userState)
at
System.ServiceModel.DomainServices.Client.DomainContext.Load[TEntity](EntityQuery1
query, LoadBehavior loadBehavior,
Action
1 callback, Object userState)
at
System.ServiceModel.DomainServices.Client.DomainContext.Load[TEntity](EntityQuery1
query, Action
1 callback, Object
userState) at
ReadmissionTrackingApplication.Client.ViewModel.QuestionairreViewModel.ReceiveNewQuestionairreRequest(fnReadmitPatientList_Result
request) at
GalaSoft.MvvmLight.Helpers.WeakAction1.Execute(T
parameter) at
GalaSoft.MvvmLight.Helpers.WeakAction
1.ExecuteWithObject(Object
parameter) at
GalaSoft.MvvmLight.Messaging.Messenger.SendToList[TMessage](TMessage
message, IEnumerable`1 list, Type
messageTargetType, Object token) at
GalaSoft.MvvmLight.Messaging.Messenger.SendToTargetOrType[TMessage](TMessage
message, Type messageTargetType,
Object token) at
GalaSoft.MvvmLight.Messaging.Messenger.Send[TMessage](TMessage
message) at
ReadmissionTrackingApplication.Client.ViewModel.PrimarySearchViewModel.OpenSurveyCommand_Execute()
at
ReadmissionTrackingApplication.Client.ViewModel.PrimarySearchViewModel.b__2()
at
GalaSoft.MvvmLight.Command.RelayCommand.Execute(Object
parameter) at
System.Windows.Controls.Primitives.ButtonBase.ExecuteCommand()
at
System.Windows.Controls.Primitives.ButtonBase.OnClick()
at
System.Windows.Controls.Button.OnClick()
at
System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs
e) at
System.Windows.Controls.Control.OnMouseLeftButtonUp(Control
ctrl, EventArgs e) at
MS.Internal.JoltHelper.FireEvent(IntPtr
unmanagedObj, IntPtr unmanagedObjArgs,
Int32 argsTypeIndex, Int32
actualArgsTypeIndex, String eventName)
Line: 1 Char: 1 Code: 0 URI:
http://localhost/readdtrackapp/Silverlight.js

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:31:44+00:00Added an answer on May 20, 2026 at 10:31 am

    Its because not all the LINQ queries are supported by EntityQuery class. Only the following operators would work with EntityQuery:

    • Where
    • OrderBy
    • ThenBy
    • Skip
    • Take

    http://msdn.microsoft.com/en-us/library/system.servicemodel.domainservices.client.entityquery%28v=vs.91%29.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ran into an interesting error with the following LiNQ query using LiNQPad and
I have the following query in Linq: var query = from question in context.Questions.Include(QAnswers)
I'm working on the following LINQ query: public void GetAuditRuleAgencyRecords(IEnumerable<Entities.AuditRule> rules) { using (LinqModelDataContext
How would I write the following query using Linq to SQL? UPDATE [TB_EXAMPLE] SET
I have a Premiums table that I attempting to query using the following LINQ-to-SQL:
I am using LINQ to EF and have the following LINQ query: var results
I have a problem with the following Linq query using Entity Framework: from o
I'm using the following LINQ to SQL query on a SQL Server Compact DB
I am using the following Linq to Entities Query, querying once on a unique
I have the following LINQ query that I am using to construct a structure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.