ASP.NET Web API is a framework for building HTTP services for clients like browsers and mobile devices. It is based on the Microsoft .NET Framework and ideal choice for building RESTful services.

learn more… | top users | synonyms

5
votes
0answers
1k views

Using Automapper, mapping DTOs back to Entity Framework including referenced entities

This is my first question here so please bare with me. I've got POCO domain entities that are persisted using Entity Framework 5. They are obtained from the DbContext using a repository pattern and ...
4
votes
0answers
150 views

ASP.NET Web API - How to alter the maximum amount of items in an XML Object Graph

When returning a large amount of XML data through an ASP.NET Web API service the error: HTTP Error 500 (Internal Server Error) is produced. This error is usually found when there is a circular ...
4
votes
0answers
574 views

Asp.Net Web API Error: The 'ObjectContent`1' type failed to serialize the response body for content type 'application/xml; charset=utf-8'

Simplest example of this, I get a collection and try to output it via Web API: // GET api/items public IEnumerable<Item> Get() { return MyContext.Items.ToList(); } And I get the error: ...
3
votes
0answers
54 views

.Net Web API Routing & Help Page

I am struggling to get the API help page to show all my API endpoints, and to show them in the style I want. Here are my routes: config.Routes.MapHttpRoute("Orgs", "v1/Orgs/{orgId}", new { ...
3
votes
0answers
59 views

Patterns for handling scheduled/unscheduled downtime using ServiceStack and WebApi

Now that we have webservices running, we need to make changes to db, servers etc. so .. wondering if there are any patterns for handling planned and unplanned downtime using ServiceStack and also ...
3
votes
0answers
703 views

JQuery stuck at CORS preflight and IIS ghost response

I'm stuck. Seriously... - solved. read on :) Scenario: I'm trying to do the right thing here. I added CORS functionality to my REST Service (ASP.NET Web-API) relying on the Thinktecture Identitymodel ...
3
votes
0answers
253 views

Generating version specific help documentation pages for ASP.NET Web API application

I am using the WebAPI Versioning package to version my API by the X-Api-Header by using the "VersionHeaderVersionedControllerSelector". I am also using the Microsoft.AspNet.WebApi.HelpPage to ...
3
votes
0answers
260 views

Required to install asp.net (“Application Server”) when deploying WebApi to server 2012?

I'm new to WebAPI in .Net 4.5. Probably my question is an FAQ, but I couldn't find how to solve it: Do I need to add the application server role in addition to IIS to have an IIS hosted WebApi ...
3
votes
0answers
2k views

Web API Post parameters are always Null

did anybody find a proper resolution of this? I just tried with WebAPI in big hopes (after completing a successful implementation of rest api in php/restler with KO and HTML5). Get is working like ...
3
votes
0answers
638 views

Entity Framework Composite Foreign Key and Navigational Property not being populated in entity during an Include

There are two entities pointing to a legacy database, the main entity should take in the secondary entity using an Include and eager load the data. Unfortunately, the entity comes up null even though ...
2
votes
0answers
19 views

ASP.NET Web API: How to use multiple HttpClientCredentialTypes for authentication in selfhosted szenario

I have a selfhosted ASP.NET Web API server (HttpSelfHostServer) running under .NET 4.0. In the HttpSelfHostConfiguration I can set one ClientCredentialType, for example to ...
2
votes
0answers
54 views

Can no longer access the list of API descriptors after installing Glimpse

We would like to use Glimpse in our ASP.net MVC project but are running into a problem when accessing the list of Web API descriptors. We have installed Glimpse.Mvc4 1.2.2 using the Nuget Package ...
2
votes
0answers
262 views

Missing request.CreateResponse in vb.net Webapi Projects

I seem to have tracked down the problem but do not know how to fix it, or if I can. When I create a new C# WebAPI project, and add an import for System.Net.Http I can access ...
2
votes
0answers
142 views

Generate XSD with validation form ASP.NET Web API models

I have a ASP.NET Web API project with a few MVC models. Is it possible to generate XSD's from the MVC models? And, is it possible to keep the validation data annotations in the generated XSD's? If ...
2
votes
0answers
800 views

.Net Web API No HTTP resource was found that matches the request URI

I am working on .Net Web API which is working fine in debug as well as on localhost IIS but when i publish this to server it starts giving following error :- "Message": "No HTTP resource was found ...

1 2 3 4 5 71
15 30 50 per page