ADO.NET Data Service & Silverlight Start-up

Thread is closed for posting
4 posts, 0 answers
  1. riccardo poli
    riccardo poli avatar
    2 posts
    Member since:
    Nov 2009

    Posted 08 Nov 2009 Link to this post

    there are videos about 'how to use silverlight & ado.net data services' with openaccess?

    i tried to start with your demo-code found on the forum, all ok, but i can't start the web service, i get error:

    Il server ha riscontrato un errore durante l'elaborazione della richiesta. Il messaggio di eccezione è 'Nel tipo di contesto dati 'DALDataContext' è presente una proprietà IQueryable 'Consulentess' di livello superiore il cui tipo di elemento non è un tipo di entità. Assicurarsi che la proprietà IQueryable sia di un tipo di entità oppure specificare l'attributo IgnoreProperties nel tipo di contesto dati per ignorarla.'. Vedere i log del server per maggiori dettagli. Analisi dello stack dell'eccezione:

    in System.Data.Services.Providers.ReflectionServiceProvider.PopulateMetadata(IDictionary`2 knownTypes, IDictionary`2 entitySets) in System.Data.Services.DataService`1.CreateProvider(Type dataServiceType, Object dataSourceInstance, DataServiceConfiguration& configuration) in System.Data.Services.DataService`1.EnsureProviderAndConfigForRequest() in System.Data.Services.DataService`1.ProcessRequestForMessage(Stream messageBody) in SyncInvokeProcessRequestForMessage(Object , Object[] , Object[] ) in System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) in System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc) in System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

    i not understand where is the problem

    thanks


  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 09 Nov 2009 Link to this post

    Hello riccardo poli,

    The problem in your case is that the data service cannot properly resolve its primary key. In order to make it work you will have to manually specify the primary key using the DataServiceKey attribute on top of your Consulentess class. So for example if your primary key is consulentessID you will need to use something like this:
    [DataServiceKey("ConsulentessID")]
    Please note that the string that is passed with the attribute represents the property that is wrapping the primary key.

    All the best,
    Petar
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. riccardo poli
    riccardo poli avatar
    2 posts
    Member since:
    Nov 2009

    Posted 09 Nov 2009 Link to this post

    thank yuo for reply, later i try.

    Another question: i tried to install vs 3.1103 on my 2nd machine, but installation fail, becouse s/o is windows 7, there are particular patch or work-around to do this? or must wait new release?

    thanks
  4. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 09 Nov 2009 Link to this post

    Hello riccardo poli,

    There was a problem with the addin placement in the 2009.3.1103 version. However we have fixed this in the version which is currently available on our website (2009.3.1104). Can you please remove all old versions of Telerik OpenAccess ORM and install the latest ( you can find the latest version under the downloads tab) and see if everything works for you. If you still face problems while installing Telerik OpenAccess ORM on your Windows 7 machine please provide us with some more information about your environment so we can reproduce this failing behavior and fix the errors as soon as possible.

    Kind regards,
    Petar
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top