0
votes
0answers
38 views

Using AutoMapper to create a DTO object, which is a result of comparing two entity objects

Assume the following two classes: public class MyEntity { public string FirstName; public string LastName; } public class MyDTO { public string FirstName; public string LastName; } ...
1
vote
2answers
24 views

hot-deployments with Self Host Web Api Services

Context: My company has been developing a WebAPI application to be hosted by IIS and the request latencies for a single static content file are about ~60ms. We investigated benchmarking the same app ...
0
votes
1answer
34 views

MultipartFormDataStreamProvider and reading file immediately after its uploaded fails sometimes

I have some Web API code that I've assembled from SO posts and other sites. However, the Task stuff is still new to me. I'm trying to copy an uploaded file to a new location, but sometimes (not all ...
0
votes
0answers
18 views

Make the XmlMediaTypeFormatter use fallback characters when Encoding fails

So, I'm dealing with some pretty nasty legacy data, and I need pass some of it to a RESTful API. I'm using WebApi Client (the nuget package), and I'm running into a problem: Sometimes, one of my ...
8
votes
1answer
151 views

Entity Framework 4 issue

Using .NET Web API (.NET 4, EF 4) and I'm getting some strange errors when debugging and really can't figure what is going on. Say in the DocumentRepository I have this constructor: public ...
0
votes
1answer
20 views

Either OData or Code-First fails: derived navigation properties

I'm having a complex situation where I either get a problem with the Code-First portion of my project, or a problem with the OData portion of my project... I have an abstract class Person of which ...
2
votes
1answer
28 views

End User Style Testing of asp.net mvc web api

I am using this default project of asp.net web API . Now I want to create a BDD style End User testing . I want to consume my web API as my real user will do in BDD way using specflow . I searched ...
-1
votes
1answer
29 views

Pivot json data from array of models

I host a web api service, which returns a snapshot of my model "myModel" for the last 12 months. The json array that I receive on my client is a simple array of 12 "myMydel" objects. If myModel has ...
2
votes
2answers
49 views

Posting json to mvc 4 WebApi controller action. Why doesn't it deserialize my array?

The following has been driving me a bit crazy. I have found a couple of similar problems but they did not offer a solution. I am trying to post a json object containing a few data items. One of them ...
0
votes
0answers
36 views

Invoking OData actions from C# client and parsing the response

I'm writing a server using ASP.Net WebAPI pre-release bits in VS2012 (I'm happy to use VS2013 although I don't think it will help at the moment). In it I have a bunch of OData controllers exposing ...
2
votes
1answer
50 views

Custom Json.NET serializer settings per type

I am using an ApiController which uses the global HttpConfiguration class to specify the JsonFormatter settings. I can globally set serialization settings as follows very easily: ...
1
vote
1answer
80 views

c# webapi httpget attribute

I am following this tutorial: http://www.asp.net/web-api/overview/web-api-routing-and-actions/create-a-rest-api-with-attribute-routing and looking at the "Get Book Details" section. I see this ...
1
vote
1answer
53 views

Authorize attribute on EntitySetController's GetEntityByKey not getting invoked

NB: It should be noted that, after this question was answered, it appears that this specific question is very much related to OData and not to general C#. I have a strange problem. I have derived ...
0
votes
1answer
32 views

MaxLength + Asp.net Web API - Errors out

I have this property inside my PriceDM class. [MaxLength(8)] public decimal Price { get; set; } public void AddPrice([FromBody]PriceDM vm) { } I keep getting this error though ...
0
votes
0answers
33 views

Real time video streaming with ASP.net Web API

My task is to pick up a video stream from an AXIS M1011 IP-camera and relay it to multiple clients with a REST web service. The reason I'm using such a thing is because the camera can hold only up to ...

1 2 3 4 5 65
15 30 50 per page