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

ADO.NET Data Service & Silverlight Start-up

3 Answers 96 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
riccardo poli
Top achievements
Rank 1
riccardo poli asked on 08 Nov 2009, 09:52 PM
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


3 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 09 Nov 2009, 11:07 AM
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.
0
riccardo poli
Top achievements
Rank 1
answered on 09 Nov 2009, 12:21 PM
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
0
PetarP
Telerik team
answered on 09 Nov 2009, 03:50 PM
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.
Tags
General Discussions
Asked by
riccardo poli
Top achievements
Rank 1
Answers by
PetarP
Telerik team
riccardo poli
Top achievements
Rank 1
Share this question
or