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

WCF RIA, SL4, DomainService

2 Answers 111 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Waleed Seada
Top achievements
Rank 2
Waleed Seada asked on 30 Dec 2010, 10:59 PM
Dear all,

I am starting my first SL application using the WCF RIA service, I have completed the example using Micosoft ADO.net domain model, then i created the Domain Service class. Now I want to replace this with OA ...

I can add the OA Domain Model with no problem, but when I need to add the Domain service I can find my Domain Model in the drop down list.
How can I get it to show up as in Microsoft Domain service wizard.

Best regards
Waleed

using SL4, OA (Q3 2010)

Modification (31-12-2010 3:40 PM)
All of suden, I have re-open my application againin VS2010 and I can find the OA context class in the dropdown, but the entries are not there, another thing is when I try to select the .rling option instead I can find the entries but also there is an error referancing the types (tables).

Best

2 Answers, 1 is accepted

Sort by
0
Waleed Seada
Top achievements
Rank 2
answered on 01 Jan 2011, 03:16 PM
Dear all,

I try to generate the Domain service class using the .rling file instead and it works for me.
 (except I realize that Domain model wizard apply the pluralization for table name)

I try to re-build the solution and I got this error :
"Error 1 Exception has been thrown by the target of an invocation. GL"

What could be the reason fo this ... ? and how can I get the Domain service to work with the OpenAccess context not the .rling file.

Any answer to those two questions ... I am stuck over here ...

Best regards
Waleed
0
Jordan
Telerik team
answered on 03 Jan 2011, 11:45 AM
Hello Waleed Seada,

It seems that the first time (when you were not able to see the context in the drop down) the project containing the context has not been built yet.
It does not matter which approach (context or .rlinq file) you will use to create your OpenAccess domain service. The result should be the same in both cases. The difference between the two approaches is in the way OpenAccess meta-data is obtained by the wizard.

The reason for the exception that you mention could be failure to create an instance of the OpenAccess context during build (this is needed for generation of client side code by the RIA build infrastructure).

However we cannot be completely certain what is causing the problem without the full exception.
You must also have in mind that if you are using the latest version of OpenAccess you will get a clearer message when the above problem occurs.

I suggest the following:
1. make sure that you are using the latest version of OpenAccess (with a version number of 2010.3.1125)
2. if the problem persists, please send us the full exception message including the full stack trace


Greetings,
Jordan
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Tags
Getting Started
Asked by
Waleed Seada
Top achievements
Rank 2
Answers by
Waleed Seada
Top achievements
Rank 2
Jordan
Telerik team
Share this question
or