This is a migrated thread and some comments may be shown as answers.

Load operation failed for query on web server (Silverlight app)

13 Answers 629 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David Simmonds
Top achievements
Rank 1
David Simmonds asked on 30 Nov 2010, 10:22 PM
I have built a small test Silverlight web app. I am using ORM with it. I have a radgrid bound to a DomainContext based object. I followed the video on the Telerik site to get started. The app works fine using VS2010 development server. When I deploy it to a web server I encounter an exception. I figure that the web server is properly configured since I have another Silverlight app that runs on it. It does not use ORM but it does use WCF RIA services. Does anyone have any help for this issue? It must be something really simple I think.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.2)
Timestamp: Tue, 30 Nov 2010 21:20:02 UTC

Message: Unhandled Error in Silverlight Application Load operation failed for query 'GetCustomers'. The remote server returned an error: NotFound.   at System.ServiceModel.DomainServices.Client.OperationBase.Complete(Exception error)
   at System.ServiceModel.DomainServices.Client.LoadOperation.Complete(Exception error)
   at System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)
   at System.ServiceModel.DomainServices.Client.DomainContext.<>c__DisplayClass1b.<Load>b__17(Object )
 

13 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 03 Dec 2010, 05:39 PM
Hello David Simmonds,

 Is it possible that you have decorated your methods with an attribute like [Query(IsComposable = false)]. In order for that attribute to work you will need to have full trust. This said if your server is operating under medium trust you will get the exception you have encountered.

Best wishes,
Petar
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
0
David Simmonds
Top achievements
Rank 1
answered on 03 Dec 2010, 05:48 PM
I am running IIS 7 on Windows Server 2008. Are you taking about the level that is in the .NET Trust Levels section using IIS Manager? If so, then I see it is set to Full (internal). The available options are:

Full (internal)
High
Medium
Low
Minimal

Do I have it set to the correct setting? I believe this is the default setting.
0
PetarP
Telerik team
answered on 08 Dec 2010, 02:18 PM
Hello David Simmonds,

 Full trust is the correct setting indeed. Have you followed the example step by step or you have made some modification? Everything seems to work fine on our side. The problem you experiencing comes only lower trust when using certain type of attributes that require full trust.

All the best,
Petar
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
0
David Simmonds
Top achievements
Rank 1
answered on 08 Dec 2010, 04:29 PM
Thed app is pretty much as the tutorial indicated. You can look at the code that I sent to make sure. But it for sure does not work here. I dont get the exception any more so maybe I fixed that but I dont get the records back either. The grid is empty.

Try using the following for the three connection strings in the web.config that I sent you in the zip file.

davidsimmonds.dyndns.org for [server]
CRM for [user]
Password for [password]

0
PetarP
Telerik team
answered on 08 Dec 2010, 05:28 PM
Hello David Simmonds,

 To which zip file are you referring? Please have in mind that forum treads does not allow attachments. If you would like to attach a zip file you will need to open a support ticket. If you are not able to please feel free to inform us and we will convert this tread to a one that allows attachments.
We look forward to your reply.

Regards,
Petar
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
0
John
Top achievements
Rank 1
answered on 14 Feb 2011, 09:44 PM
David! Do you got the solution?

We have the same issue. Thing works in develop machine but not working when I publish to the server.
It gives Load Error
System.ServiceModel.DomainServices.Client.DomainOperationException: Load operational failed for query 'QueryName'.

John
0
PetarP
Telerik team
answered on 15 Feb 2011, 05:57 PM
Hi John,

 I am afraid that we did not receive any feedback from David and thus we were not able to investigate his problem further. Maybe he found the problem himself and that is why we were not able to see his project. The problem is that this exception is too general and we are not able to determine the exact cause without having some more information. 
A possible cause for this exception would be if two or more submit operations overlap with each other. Another cause would be if a context is disposed prior to finishing its submit operation. Can you please verify that indeed some of those cases is not cause of your problem?

Best wishes,
Petar
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
0
David Simmonds
Top achievements
Rank 1
answered on 15 Feb 2011, 06:20 PM
I could not find the solution so I stopped using ORM.
0
PetarP
Telerik team
answered on 18 Feb 2011, 04:58 PM
Hi David Simmonds,

 If you share some additional information with us we might be able to locate the issue together. Does your project allow that?
We will be more than happy to help you continue to use our product.

Greetings,
Petar
the Telerik team
0
jiansheng
Top achievements
Rank 1
answered on 29 Mar 2011, 09:59 PM
I got the exactly same problem. 

  • Webpage error details
  • User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
  • Timestamp: Tue, 29 Mar 2011 14:16:21 UTC
  •  
  • Message: Unhandled Error in Silverlight Application Load operation failed for query 'GetVehicles'. [HttpWebRequest_WebException_RemoteServer]
  • Arguments: NotFound
  • Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60129.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer   at System.ServiceModel.DomainServices.Client.OperationBase.Complete(Exception error)
  •    at System.ServiceModel.DomainServices.Client.LoadOperation.Complete(Exception error)
  •    at System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)
  •    at System.ServiceModel.DomainServices.Client.DomainContext.<>c__DisplayClass1b.<Load>b__17(Object )
  • Line: 1
  • Char: 1
  • Code: 0
  • URI: http://mari.verizon.com/Silverlight.js



I can't do anything to change the trust level on server side. Is there other way around?

0
PetarP
Telerik team
answered on 01 Apr 2011, 02:20 PM
Hi David Simmonds,

 Unfortunately the stacktrace provided does not really give us many information on what exactly has failed for you. A possible reasons as I have stated previously would be if two or more submit operations overlap with each other. Another cause would be if a context is disposed prior to finishing its submit operation. 

Greetings,
Petar
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sergio
Top achievements
Rank 1
answered on 24 Jan 2014, 12:24 PM
Dier support. 
This link my work project http://files.mail.ru/20B88DD979E34283BCA5CC884F9F3527

0
Viktor Zhivkov
Telerik team
answered on 29 Jan 2014, 08:55 AM
Hi Sergio,

Can you start a separate Support or Forum thread with detailed descriptions of your question or scenario that you want to implement.
While having the project as support resource is useful and sometimes mandatory, we will be unable to help you if we don't know if you have experienced any issues or you need some guidance.

Regards,
Viktor Zhivkov
Telerik
Telerik has recently updated some of its product names. You can check out the Telerik Product Map here (www.telerik.com/name-mapping). OpenAccess ORM is now renamed to Telerik Data Access.
Tags
Development (API, general questions)
Asked by
David Simmonds
Top achievements
Rank 1
Answers by
PetarP
Telerik team
David Simmonds
Top achievements
Rank 1
John
Top achievements
Rank 1
jiansheng
Top achievements
Rank 1
Sergio
Top achievements
Rank 1
Viktor Zhivkov
Telerik team
Share this question
or