[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Can't access DomainContext via RIA Services

Posted on 2009-12-21
Medium Priority
Last Modified: 2016-05-02
I'm building Silverlight App with RIA Services

I've created strongly typed domain service called ContactsDomainService.

The problem is that I can't access it in SL app like this

private void OKButton_Click(object sender, RoutedEventArgs e)
  ContactsDomainContext contactsContext = new

Nevertheless it is auto-generated in Contacts.Web.g.cs

Have I missed smth? TIA
Question by:Sovereign
LVL 42

Expert Comment

by:Meir Rivkin
ID: 26103313
did ContactsDomainService.cs and ContactsDomainService.metadata.cs were generated?

Accepted Solution

Sovereign earned 0 total points
ID: 26103881
Yeap, I've found that by default the Contacts.Web.g.cs isn't included in the project. I've added it manually and it worked. Is it correct? I thought it should understand code generated in Generated_Code folder.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question