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

Why isn't my InnerException making it to the client?

I have the following code on the server: if (actualRowCount > maxRows) { throw new DomainException("OverMaxRowLimitException", new OverMaxRowLimitException(string.Format(MaxRowsMessage, actualRowCount, maxRows))); } This creates…
ChrisF
  • 134,786
  • 31
  • 255
  • 325
7
votes
1 answer

Choice for WCF Service Hosting with IIS or Self Hosting with Windows Service

As we want to develop a new product using Asp.Net MVC 3. The key point here is everything we talk to database by WCF web service. We are in the phase where we need to decide whether we host WCF web service in IIS OR self hosting with Windows…
nunu
  • 3,184
  • 10
  • 43
  • 58
7
votes
1 answer

Custom implementation of a DomainService using Linq to SQL

Can anyone point me to an example of or briefly describe how one would go about creating a custom implementation of a WCF RIA Services DomainService using Linq to SQL as the data access layer but without the use of the .dbml file (this is because…
Dmitry Samuylov
  • 1,554
  • 2
  • 14
  • 37
7
votes
4 answers

How Can I Extend A Entity When Using RIA Services With Silverlight?

On the server side of my Silverlight solution, I have 2 projects. Website that serves up the Silverlight page. A Entity Framework data access layer. I have a entity with FirstName and LastName properties on it. I want to add a FullName property…
DaveB
  • 9,470
  • 4
  • 39
  • 66
7
votes
2 answers

Does WCF RIA enforce bad design?

I have been dabbling in WCF RIA with Silverlight for the past few weeks and I am finding it very difficult to generate well-designed software using it. My impression is that it's a tool that's best used for "rapid application development",…
Martin Doms
  • 8,598
  • 11
  • 43
  • 60
7
votes
2 answers

Alternative to Using an Entity as a Parameter to an Invoke Method in WCF RIA Services

Howdy, ya'll! First question on StackOverflow! :-) So here's the scenario: We're working on a web app with Silverlight 4 and using WCF RIA Services 1.0 SP1 Beta for the web service. I have my entities in the Entity Framework Designer, but I'm using…
7
votes
2 answers

RIA Services OData "Query options are not allowed."

I have a OData endpoint which was created automatically by RIA which seems to work with simple 'get' queries. E.g. http://xxx/Service/BusinessApplication1-Web-DomainService1.svc/odata/ProductSet But when I try to use queries such as 'where' or…
Riddle
  • 121
  • 3
7
votes
2 answers

T4 code generator for Entity Framework - Failed to resolve include text for EF.Utility.CS.ttinclude

I'm trying to automate build process for CI server of Silverlight 5 application using OpenRIA Services. I've got database-first Entity Framework .edmx generated file from which DomainModel is generated, and as part of build I want to generate…
7
votes
1 answer

How do I use DomainContext.Load to populate properties of my ViewModel?

I have a Silverlight page that gets its data from a view model class which aggregates some data from various (RIA services) domain services. Ideally I'd like the page to be able to data bind its controls to properties of the view model object, but…
kristian
  • 22,731
  • 8
  • 50
  • 78
7
votes
4 answers

How to access WCF RIA service from Windows Service?

I have a functioning Silverlight 4 application (VS2010, SL4, WCF RIA, hosted on my dev box using Cassini, 64-bit Windows 7). Inside the ClientBin directory I have an .svc file that describes my service: <% @ServiceHost…
Duncan Bayne
  • 3,870
  • 4
  • 39
  • 64
7
votes
2 answers

Can WCF Data Services or RIA Services be implemented with NHibernate?

From what I read on the internets, WCF Data Services seem to be bound to data access via Entity Framework on the server. Is there a way to have NHibernate access mapped in the same way?
devio
  • 36,858
  • 7
  • 80
  • 143
7
votes
1 answer

How do I use a command line tool to install .net 4 to IIS

I'm trying to deploy my WCF RIA services application to our in-house server for testing. I've been following the instructions and comments from this blog…
thepaulpage
  • 4,614
  • 2
  • 25
  • 39
7
votes
3 answers

Use enum item name like an attribute parameter

I just want don't use "Managers" for each attribute and use some enum for that. But it seems it is impossible or I am wrong? So I try to replace [RequiresRole("Managers")] with [RequiresRole(HardCodedRoles.Managers.ToString())] ... public enum…
NoWar
  • 36,338
  • 80
  • 323
  • 498
6
votes
7 answers

Error MSB4018: The "CreateRiaClientFilesTask" task failed unexpectedly - Attempted to access an unloaded AppDomain

This question is different from the questions posted here and here even though the titles are the same. The problem arises intermittently. The error always occurs if the project has been cleaned or is being built from a fresh checkout. Pushing build…
Matthew Steeples
  • 7,858
  • 4
  • 34
  • 49
6
votes
2 answers

WCF services by default are restful or soap based?

I am new to WCF and just have made a sample service. Please guide me by default WCF services are soap or restful if we not specify anywhere ? I tried to run URL of my services and got this page. I am feeling it is SOAP based. Kindly guide. Thanks
haansi
  • 5,470
  • 21
  • 63
  • 91