Questions tagged [wcf-data-services]

This technology uses the OData protocol to transport data over the Internet using REST-ful paradigms. WCF Data Services was formerly known as ADO.NET Data Services and its code name, Astoria.

Helpful Links:

Visit http://www.odata.org for producers and consumers of OData services and some information on the protocol itself.

Visit http://www.odataprimer.com/ for lots of samples and examples on using WCF Data Services with various platforms and devices.

1909 questions
175
votes
6 answers

Turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server

I have a WCF service that has been working perfectly, and something has changed and I don't know what. I get this exception: System.ServiceModel.FaultException: The server was unable to process the request due to an internal error. For more…
Trevor
  • 2,186
  • 3
  • 16
  • 18
87
votes
8 answers

WCF Data Services (OData) Vs ASP.NET Web API

I am designing a distributed application that will consist of RESTful services and a variety of clients (Silverlight, iOS, Windows Phone 7, etc). Right now I'm determining which technology I should use to implement my services, WCF Data Services…
Raymond Saltrelli
  • 4,071
  • 2
  • 33
  • 52
62
votes
3 answers

Dispatcher BeginInvoke Syntax

I have been trying to follow some WCF Data Services examples and have the following code: private void OnSaveCompleted(IAsyncResult result) { Dispatcher.BeginInvoke(() => { context.EndSaveChanges(result); }); …
Jon Archway
  • 4,852
  • 3
  • 33
  • 43
29
votes
3 answers

What is the implementing class for IGrouping?

I am trying create a WCF Data Services ServiceOperation that does grouping on the server side and then sends the data down to the client. When I try to call it (or even connect to the service) I get an error. It says that it can't construct an…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
26
votes
2 answers

is it possible to Query an Odata service and expand Child of Child entities?

This sounds rather simple (and maybe I'm missing the obvious here) but I can't find a solution. I know I can query an entity and return one, or many direct child entities doing this: var query = from c in…
Andreas
  • 681
  • 1
  • 8
  • 16
24
votes
8 answers

How to Improve WCF Data Services Performance

I'm new to WCF Data Services so I've been playing. After some initial tests I am disappointed by the performance of my test data service. I realize that because a WCF DS is HTTP-based there is overhead inherent in the protocol but my tests are still…
Simon Gillbee
  • 3,932
  • 4
  • 35
  • 48
24
votes
11 answers

Sequence contains no matching element - EntityFramework

I'm using EF 6.1.0 and was creating a WCF Service. First I created a Class Library containing my entities, Mappers and Context for initializing EF. I've also created a class containing an instantiation of the context and have this code: public…
choopau
  • 2,209
  • 5
  • 21
  • 28
22
votes
5 answers

How do I choose between WCF, REST, POX and RIA services for a new Silverlight application

There a lot of different ways a Silverlight application can connect back to it’ server. Including WCF - Windows Communication Foundation REST (see also) ADO.NET Data Services (or is this just REST?) POX - Plain Old XML (E.g basic xml) RIA…
Ian Ringrose
  • 51,220
  • 55
  • 213
  • 317
22
votes
1 answer

WCF Streaming large data (500MB / 1GB) on a self hosted service

I'm currently experiencing an issue trying to send large data using WCF self hosted service (no IIS). Transferring 500MB using streaming results with my service crashing with System.OutOfMemoryException. Is it possible at all to transfer such amount…
user2003667
  • 221
  • 1
  • 2
  • 3
21
votes
3 answers

Transfer large amount of data in WCF service

I have created a web service in WCF which returns more than 54000 data-rows with 10 data in each row. I have used the wsHttpBinding for communication. The service works well with less data (i.e. 2000 rows) but it bombs out when attempting to send…
Rizvi Hasan
  • 703
  • 1
  • 5
  • 19
20
votes
8 answers

How to handle json DateTime returned from WCF Data Services (OData)

I believe I am missing something obvious here. When I request a JSON response from an OData service I get a different result for the DateTime properties than I do when I request XML. I'll use the NerdDinner OData feed as an…
Andy May
  • 4,030
  • 5
  • 34
  • 33
19
votes
6 answers

Data inserted successful but jquery still returning error

I used following jQuery to insert data via Data Service. Event though I got status-response 201 and the data is successfully inserted into my database, the system still regard it as an error and gives me "failed" alert? What am I missing…
D.J
  • 2,534
  • 4
  • 28
  • 43
18
votes
1 answer

ADO.NET Data Services with Linq-to-SQL

I am encountering a weird error when using linq-to-sql with ado.net data services. I have a simple silverlight application that connects to a remote database. I first added the linq-to-sql class and dragged a table onto the designer. Then I added a…
jdiaz
  • 7,354
  • 12
  • 42
  • 51
18
votes
1 answer

The 'Content-Type' header must be modified using the appropriate property or method. Parameter name: name

Hi I am using HttpWebRequest GET method to call a REST service. I am getting error :- ***'Content-Type' header must be modified using the appropriate property or method. Parameter name: name.***i checked all answer related this issue from…
Anuj
  • 195
  • 1
  • 1
  • 9
18
votes
1 answer

WCF Data Service - How To Diagnose Request Error?

I have an application which will use WCF to serve up various chunks of data to clients. However, due to the size of some of the sets of data that will be returned (and that's because the client app needs to show a large number of objects in a list,…
JohnL
  • 3,922
  • 3
  • 22
  • 22
1
2 3
99 100