Questions tagged [wcf-ria-services]

Microsoft WCF RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms.

RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier.

Get Started with WCF RIA Services

1547 questions
6
votes
1 answer

WCF-RIA Services Client OutputCache - how to force a refresh of the cache

As mentioned in another question we are using WCF-RIA Services in our project in combination with the silverlight navigation framework. On part is a search function. A search button will navigate to a special search page, putting the search query in…
stefan.s
  • 3,489
  • 2
  • 30
  • 44
6
votes
4 answers

Why is it so hard to share resource files (resx) with my Silverlight client?

I'm trying to share a resource file (.resx file) from my web (RIA Service?Silverlight Host) to client (Silverlight) by linking the resource file into my client. When I try to access resources using the ResourceManager object I get the following…
Jordan
  • 9,642
  • 10
  • 71
  • 141
6
votes
1 answer

WCF Ria Services ChangeSet.GetOriginal(): How does it work?

I have a fairly simple question to which I cannot seem to find the answer for. I have a silverlight app with Ria Services. In the DomainService class I have an update method like below: public void UpdateConversationState(ConversationState…
Sander_V
  • 103
  • 1
  • 5
6
votes
3 answers

How to implement a lazy loaded Silverlight data grid without using paging

Using the Business Application template from the brand new released RIA Services, you can see lots of examples using the data grid on top of a DomainDataSource in combination with a DataPager. The properties PageSize and LoadSize can be used to…
6
votes
2 answers

How many entities should RIA domain service include?

I was wondering about how to exactly implement domain service in RIA. Is it common to include all entities in the entire domain model in a single domain service, thus making the service responsible for the entire database? Is this the way it's…
user302845
6
votes
1 answer

Chrome does not show network traffic of Silverlight RIA services messages after update to version 32.0.1700.76 m

Couple days ago Google Chrome automatically updated from version 31.* to version 32.0.1700.76 m. After that happened it does not show in DevTools network traffic request/responses of "application/msbin1" type anymore. These requests are visible in…
6
votes
3 answers

Linked file in WCF RIA service does not build in TFS Build server

I've just setup a TFS (2012) server and now I'm trying to build the complete code (written in .NET 4.0 in VS 2010) via the TFS Build server. But in my solutions I have also a WCF RIA project which contains linked files because they are used…
TimVK
  • 1,146
  • 6
  • 16
6
votes
1 answer

EF5 Code First and RIA Services Silverlight "Object reference not set to an instance of an object" error building client

I am working on setting up a new project using Code First for entity framework 5 in silverlight using RIA services. I have created a test project due to some issues I have encountered and will post the code below. Namely, I get an 'Object…
6
votes
2 answers

.Net RIA Services: DomainService Needs a Parameterless Constructor?

I'm using the July CTP of .Net RIA Services in an ASP.Net application with some Silverlight components. I'm calling the RIA Services from Silverlight. My problem arose when I tried to use Unity and constructor dependency injection in my Domain…
brien
  • 4,400
  • 4
  • 30
  • 32
5
votes
1 answer

WCF RIA - Query operator 'Count' is not supported

I'm trying the following code.. LoadOperation PhasesLP = context. Load(context.GetTasksQuery(). Where(o=> ProjectList.Where(p=> p.ProjectID == o.ProjectID).Count() == 1) I get the following error: Query operator 'Count' is not…
user1106741
  • 237
  • 2
  • 5
  • 11
5
votes
1 answer

How to refresh instance of entity at client side with wcf ria service?

I have problem to call WCF RIA service again to refresh data at client side. Here is my case: At server side, a domain service is something like: public IQueryable GetPersonByID(int id) { var result =…
KentZhou
  • 24,805
  • 41
  • 134
  • 200
5
votes
1 answer

ValidationErrors of custom ValidationAttribute not properly displayed

I have a ValidationAttribute that I have created which is shared between the Server, and Client. In order to get the validation attribute to properly generate to the client when referenced within a data helper class I had to be very specific in how…
5
votes
1 answer

Which thread is the callback executing on when performing an asynchronous RIA Services call?

I'm using a RIA Services DomainContext in a Silverlight 4 app to load data. If I'm using the context from the UI thread, is the callback always going to be on the UI thread? Or put another way, is the callback always on the same thread as the…
Chris
  • 3,081
  • 3
  • 32
  • 37
5
votes
2 answers

Entity Framework Code First DbContext Checks the ConnectionString During Compile?

It seems that the Code First DbContext really uses the given ConnectionString during compile? I don't even know how that is possible but to me it seems to be so. If I turn OFF my local SQL Server, I get the error stating "Failed to get the…
5
votes
2 answers

RejectChanges for specific Entities

I'm having the following issue with WCF RIA Services: I have a table Customer and a table Address. A customer can have 0...n addresses. There is a form for editing the customer, with a Datagrid that displays the addresses. You add / edit an address…
LueTm
  • 2,366
  • 21
  • 31