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
5
votes
4 answers

Entity Framework ObjectContext in windows/WPF/Silverlight application

We are writing a WPF application using Entity framework (Silverlight with RIA services to be precise). We're using a shared ObjectContext through the application so that we can benefit from sharing data across the modules. The problem is - if user…
gius
  • 9,289
  • 3
  • 33
  • 62
5
votes
3 answers

Silverlight RIA Services - how to do Windows Authentication?

I am building my first Silverlight 3 + RI Services application and need some help. It will be deployed in an controlled corporate intranet, 100% windows clients. I have started from the Silverlight Business Application template. These are my…
5
votes
1 answer

Silverlight POCO returned by RIA services

I am using a Silverlight 5 Business Application using RIA services to return a POCO class from the service side to populate a hierarchical menu. The original problem I had with the POCO class was that the SubMenuItems property was not getting…
Phil Murray
  • 6,396
  • 9
  • 45
  • 95
5
votes
3 answers

LightSwitch 'Microsoft-LightSwitch-Security-ServerGenerated-Implementation-AuthenticationService.svc' does not exist

I have exercised my frustration to its utmost today while trying to deploy a Lightswitch application to a Windows 2008 R2 server running IIS 7.5. Upon navigating to the application, I receive the following execrated error: Load operation failed…
5
votes
2 answers

How to Cancel a RIA Services LoadOperation

I am using RIA services in a Silverlight project. I am using the LoadOperation class on the client side to load some data from the server. In the process of loading that data the request might be superseded by a newer request for different data.…
peter
  • 13,009
  • 22
  • 82
  • 142
4
votes
3 answers

Can I use RIA Services with Entity Framework 4.3?

This is my setup: MVC app A domain model with a data access layer using Enitity Framework Code First Silverlight application (displayed in the MVC App) I'm using RIA Service to make the Silverlight App interact with the DB. Ria services only…
cfs
  • 1,304
  • 12
  • 30
4
votes
1 answer

How do I get the string length for a field on the server side?

I have a edmx model created from a database and a metadata.cs for it. In the client, the .g.cs includes [StringLength(X)] attributes alongside my attributes from my metadata. I am doing some serverside validation for a flat file import that is…
weston
  • 54,145
  • 21
  • 145
  • 203
4
votes
2 answers

partial method OnCreated not called when expected

I've extended my domain class on the silverlight client side in a partial class. Specifically, I've added a RelayCommand property that I will be binding a button to. The RelayCommand property needs to be initialized, and so it would seem that the…
Ralph Shillington
  • 20,718
  • 23
  • 91
  • 154
4
votes
1 answer

RIA Services DomainService query with EF Projection that calls method and still allows composable paging/sorting

Here's an interesting problem that I hope someone can lend a hand with. I have a DomainService class with the following query: [Query] public IEnumerable GetBatchResults(int batchId) { return…
Ronnie Overby
  • 45,287
  • 73
  • 267
  • 346
4
votes
1 answer

Call another WCF Data Service from WCF RIA Service using Entity Framework

I would like to use WCF RIA Services to access data from my Silverlight Application. However the data is not provided from a local data storage, but from another WCF Data Service (I'm accessing an external CRM system). I don't want to access the…
slfan
  • 8,950
  • 115
  • 65
  • 78
4
votes
1 answer

RIA does not generate all proxy entities

Framework: Silverlight 4 + Entity Framework 4 (SL business application: SL project and .WEB project in a solution) I have two classes in my Data Layer (not mapped to DB, created manually - I need them for specific view) [EnableClientAccess] public…
4
votes
1 answer

Disabled lazy-loading and eager-loading entity references not working as expected

I've been working with WCF RIA Services and Silverlight and have had some success in exposing a service that serves data taken from an ADO.NET Entity Data Model modeled from an existing SQL Server 2008 Express database. The database defines many…
SilverX
  • 1,509
  • 16
  • 18
4
votes
1 answer

RIA Services and FaultContract

How can I use the FaultContract attribute with RIA Services so that I'll be able to pass additional information as part of an exception to Silverlight?
sternr
  • 6,216
  • 9
  • 39
  • 63
4
votes
1 answer

RIA Services Vs. WCF and Shared Code

We're starting to develop a new Silverlight LOB application where the DataAccess will not be based on EF, rather our own DAL code (for legacy and other not related reasons). We are currently debating whether to use RIA Services or simple WCF…
sternr
  • 6,216
  • 9
  • 39
  • 63
4
votes
2 answers

WCF RIA Services for POCO as a query parameter

I define a method below in a DomainService class but get a compiler error: Parameter 'objectType' of domain operation entry 'GetPropertiesByGuiObject' must be one of the predefined serializable types. public IQueryable
TomCaps
  • 75
  • 4