Thread is closed for posting
2 posts, 0 answers
  1. Maher
    Maher avatar
    11 posts
    Member since:
    Jul 2012

    Posted 07 Sep 2012 Link to this post

    In the server side I created this method to query an Oracle View that I mapped through reverse mapping:

     public IQueryable<CustomView> GetPatientByNameAndSexAndAgeBetween()
                using (POCEntitiesModel sem = new POCEntitiesModel())
                        IList<CustomView> result = sem.CustomViews.ToList();
                        return result.AsQueryable();
                    catch (Exception)

    In the client side (Silverlight 5), I use a RadGridView to show data:

    public partial class MainPage : UserControl
            POCDomainContext ctx = new POCDomainContext();
            public MainPage()
                EntityQuery<CustomView> query = ctx.GetPatientByNameAndSexAndAgeBetweenQuery();         
                LoadOperation<CustomView> lo = ctx.Load<CustomView>(query);
                dgSearchResults.ItemsSource = lo.Entities;

    =====>When I run it, I get System.ServiceModel.DomainServices.Client.DomainOperationException!
  2. PetarP
    PetarP avatar
    754 posts

    Posted 12 Sep 2012 Link to this post

    Hi Maher,

     Unfortunately the error you are facing is too generic and it is not really possible for us to know the exact reason for it. It is possible that the type your returning is exposing a non supported CLR for example, or it is not matching all the requirmenets OpenAccess might have. 
    In order to determine the error you can subscribe to the Completed even of your LoadOperation. In the call back method you will be able to observe the actual error your service has thrown and thus have a better knowledge on how to fix it.

    Kind regards,
    the Telerik team
    Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Back to Top