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
4
votes
1 answer

Silverlight + RIA Entity Domain Service best practice: How many entities per domain?

I have a database with a gazillion entities, I watched Tim Heuer's video about Silverlight & RIA Services, and he explained how to generate a DomainService. My question is, should I use many domain services for each entity or merge them all along…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
4
votes
1 answer

why Adding certificate based authentication on rest service hosted as windows service, not able to start service?

I have created the WCF REST sevice and hosted as windows service. I took the reference from following post. http://www.codeproject.com/Tips/1009004/WCF-RESTful-on-Windows-Service-Host Now i am trying to add certificate based authentication on it. I…
Suri
  • 3,287
  • 9
  • 45
  • 75
4
votes
3 answers

Linq & String.ToLower() strange behavior

I have a query on the server side that returns a list of distinct cities from a zipcode table. I'm using WCF RIA Service. The following query successfully returns 228 cities when provincename == "" public IQueryable GetCities(string…
Yeonho
  • 3,629
  • 4
  • 39
  • 61
4
votes
2 answers

Deployment of Silverlight RIA Services Application

Testing on local Web Development Server and running the application in shared hosting environment differs a lot. What are the best steps to deploy a Silverlight RIA Services Application on a shared hosting environment?
Ben
  • 2,560
  • 4
  • 29
  • 43
4
votes
3 answers

Porting Silverlight to WPF

I have a large Silverlight LOB application which I'm trying to port to a desktop WPF application (because of Silverlight's slow death.) The xaml & c# code port nicely but the original app uses WCF RIA Services. (Over 30,000 lines.) My question is,…
user2429448
  • 541
  • 1
  • 5
  • 14
4
votes
1 answer

silverlight The type exists in both and DataContractSurrogates

I'm using silverlight 4 with ria serivces .. I got an error said : The type 'eLab.Web.SessionsHWFile' exists in both 'eLab.Web.dll' and 'DataContractSurrogates_c96b3601-cd13-4049-93bb-e7b3f59a4fd9' where eLab.Web is the aspx web project that…
Dabbas
  • 3,112
  • 7
  • 42
  • 75
4
votes
1 answer

Submit operation failed - NotFound from RIA Services with Silverlight 4 on SubmitChanges()

I'm using SL4 and RIA Services to build a new solution based on the Silverlight Business Application template. Since I'm still developing, I'm just using localhost. I'm trying to test the SubmitChanges functionality by making a single change in an…
MylesRip
  • 1,212
  • 17
  • 29
4
votes
4 answers

How to prevent Silverlight RIA Entity getting attached to datacontext before i'm ready

I have a Silverlight 4 application for a simple 'TODO' list. The problem I'm having is that databinding is hooking up relationships on my TODO object, which causes the RIA data context to add it to the DataContext.TODOs list before I want it there.…
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
4
votes
2 answers

Why use a "RIA Services Link" instead of just an OData endpoint?

Before reading, please know I've read all the other posts about the differences between vanilla WCF, WCF Data Services and RIA Services. My question is specifically about why RIA Services is being considered as a special kind of data source…
4
votes
3 answers

Are there scenarios where the usage of WCF RIA Serivces isn't a good choice?

Since Silverlight 4 Microsoft recommends the usage WCF RIA services for business applications. Are there Silverlight scenarios, where the WCF RIA serives should no be used and plain WCF services or webservices or other techniques are the better…
uhu
  • 1,702
  • 5
  • 17
  • 26
4
votes
1 answer

How do I do client-side validation in WPF using WCF RIA Services

I've created a WCF RIA Service that I'd like to use with a WPF application. I've added several System.ComponentModel.DataAnnotations validation rules on the entities meta-data, all which work great on the server when I call…
Louis S. Berman
  • 994
  • 1
  • 9
  • 25
4
votes
5 answers

Domain Service method not compiling; claims "Return types must be an entity ..."

I have a WCF RIA Domain Service that contains a method I'd like to invoke when the user clicks a button: [Invoke] public MyEntity PerformAnalysis(int someId) { return new MyEntity(); } However, when I try to compile I'm given the following…
Duncan Bayne
  • 3,870
  • 4
  • 39
  • 64
4
votes
3 answers

Can WCF RIA Services be self hosted?

I know WCF can be self hosted. how about WCF RIA Services? Thanks!
James Zhou
  • 41
  • 2
4
votes
1 answer

Silverlight 4 Overriding the DataForm Autogenerate to insert Combo Boxes bound to Converters

I've been working towards a solution for some time and could use a little help. I know I've seen an example of this before, but tonight I cannot find anything close to what I need. I have a service that provides me all my DropDownLists, either from…
4
votes
1 answer

Generic Way for Loading using WCF Ria Service?

Would you please help if it is possible, is there is a way to have generic way for load operation For example: This is normal way to get Departments Data and bind it to grid grid.ItemsSource = context.Departments; LoadDepartmentsData(); private…
keeper
  • 41
  • 3