Top "Asp.net-web-api2" questions

ASP.

C# Web API POST parameter FromBody is always null

I've been scouring the web for hours and tried many different solutions also described here on StackOverflow. I know similar …

c# json http-post asp.net-web-api2 frombodyattribute
Web API Gzip not being applied

I have added the web.config entry to enable gzip compression based on this S/O answer Enable IIS7 gzip. …

c# gzip asp.net-web-api2
Handling errors/exceptions in a mediator pipeline using CQRS?

I'm trying to follow this post by Jimmy Bogard to implement a mediator pipeline so I can use pre/post …

c# asp.net-web-api2 autofac cqrs mediatr
how to return a xlsx file using memorystream web api

I am successfully making a web request, creating xlsx file and saving it to a directory. I would like to …

c# asp.net-web-api2 httpresponse memorystream system.net.httpwebrequest
The inline constraint resolver of type 'DefaultInlineConstraintResolver' was unable to resolve the following inline constraint: 'apiVersion'

I have a basic WebApi implementation setup with the default Values controller. After reading a blog about RESTful WebApi Versioning …

c# asp.net asp.net-web-api asp.net-web-api2 api-versioning
Angular2 HTTP Post ASP.NET MVC Web API

How do you properly create a Web API POST of complex object or multiple parameters using Angular2? I have a …

asp.net asp.net-web-api angular asp.net-web-api2 restangular
Passing multiple parameter to DELETE request c# web API

My question is how can I pass multiple parameter to DELETE request. My controller class as follow, namespace MYAPI1.Controllers { …

c# rest parameters asp.net-web-api2 http-delete
How to force WebAPI to use JSON.net 6.0.3 instead of 4.5?

After adding WebAPI and register it in Global.asax. We find our web app breaks at this line: Line 17: GlobalConfiguration.…

c# json.net asp.net-web-api2 asp.net-mvc-5.1
Basic Authentication Middleware with OWIN and ASP.NET WEB API

I created an ASP.NET WEB API 2.2 project. I used the Windows Identity Foundation based template for individual accounts available …

asp.net-web-api2 owin wif claims-based-identity asp.net-identity-2