Top "Asp.net-web-api" questions

ASP.

Single controller with multiple GET methods in ASP.NET Web API

In Web API I had a class of similar structure: public class SomeController : ApiController { [WebGet(UriTemplate = "{itemSource}/Items")] public SomeValue …

c# asp.net-web-api
HTTP 404 Page Not Found in Web Api hosted in IIS 7.5

I have a Web Api application. It works perfectly well when I tested it using the VS 2010 debugging dev server. …

c# asp.net-web-api iis-7.5 http-status-code-404
405 method not allowed Web API

This error is very common, and I tried all of the solutions and non of them worked. I have disabled …

c# asp.net-web-api webdav
Optional query string parameters in ASP.NET Web API

I need to implement the following WebAPI method: /api/books?author=XXX&title=XXX&isbn=XXX&somethingelse=…

c# url asp.net-web-api query-string
Difference between ApiController and Controller in ASP.NET MVC

I've been playing around with ASP.NET MVC 4 beta and I see two types of controllers now: ApiController and Controller. …

asp.net-mvc asp.net-web-api
How to get HttpClient to pass credentials along with the request?

I have a web application (hosted in IIS) that talks to a Windows service. The Windows service is using the …

c# asp.net-web-api impersonation windows-security
How to add Web API to an existing ASP.NET MVC 4 Web Application project?

I wish to add an ASP.NET Web API to an ASP.NET MVC 4 Web Application project, developed in Visual …

asp.net-mvc asp.net-mvc-4 asp.net-web-api visual-studio-2012
WCF vs ASP.NET Web API

I've spent a few months trying to grasp the concepts behind WCF and recently I've developed my first WCF service …

c# wcf asp.net-web-api
Best practice to call ConfigureAwait for all server-side code

When you have server-side code (i.e. some ApiController) and your functions are asynchronous - so they return Task<…

c# asp.net-web-api task-parallel-library async-await
How to extract custom header value in Web API message handler?

I currently have a message handler in my Web API service that overrides 'SendAsync' as follows: protected override Task<…

c# asp.net-web-api httprequest