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

14 posts, 0 answers
  1. David Simmonds
    David Simmonds avatar
    56 posts
    Member since:
    Mar 2010

    Posted 30 Nov 2010 Link to this post

    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 )
     

  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 03 Dec 2010 Link to this post

    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.
  3. DevCraft banner
  4. David Simmonds
    David Simmonds avatar
    56 posts
    Member since:
    Mar 2010

    Posted 03 Dec 2010 Link to this post

    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.
  5. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 08 Dec 2010 Link to this post

    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.
  6. David Simmonds
    David Simmonds avatar
    56 posts
    Member since:
    Mar 2010

    Posted 08 Dec 2010 Link to this post

    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]

  7. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 08 Dec 2010 Link to this post

    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.
  8. John
    John avatar
    1 posts
    Member since:
    Oct 2010

    Posted 14 Feb 2011 Link to this post

    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
  9. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 15 Feb 2011 Link to this post

    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.
  10. David Simmonds
    David Simmonds avatar
    56 posts
    Member since:
    Mar 2010

    Posted 15 Feb 2011 Link to this post

    I could not find the solution so I stopped using ORM.
  11. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 18 Feb 2011 Link to this post

    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
  12. jiansheng
    jiansheng avatar
    1 posts
    Member since:
    Mar 2011

    Posted 29 Mar 2011 Link to this post

    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?

  13. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 01 Apr 2011 Link to this post

    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
  14. Sergio
    Sergio avatar
    19 posts
    Member since:
    Jul 2012

    Posted 24 Jan 2014 Link to this post

    Dier support. 
    This link my work project http://files.mail.ru/20B88DD979E34283BCA5CC884F9F3527

  15. Viktor Zhivkov
    Admin
    Viktor Zhivkov avatar
    291 posts

    Posted 29 Jan 2014 Link to this post

    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.
Back to Top
DevCraft banner