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

System.ServiceModel.DomainServices.Client.DomainOperationException

1 Answer 150 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Maher
Top achievements
Rank 2
Maher asked on 07 Sep 2012, 11:58 AM
Hello,
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())
            {
                try
                {                     
                    IList<CustomView> result = sem.CustomViews.ToList();
                    return result.AsQueryable();
                }
                catch (Exception)
                {
                    throw;
                }
            }
        }

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

public partial class MainPage : UserControl
    {
        POCDomainContext ctx = new POCDomainContext();
        public MainPage()
        {
            InitializeComponent();            
            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!

1 Answer, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 12 Sep 2012, 11:39 AM
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,
Petar
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!
Tags
Databases and Data Types
Asked by
Maher
Top achievements
Rank 2
Answers by
PetarP
Telerik team
Share this question
or