Top "Asp.net-web-api" questions

ASP.

HTTP Error 500.19 and error code : 0x80070021

I have a simple webAPI build by Visual Studio 2013. It works well when I run it from VS13 but when …

asp.net-mvc iis asp.net-web-api asp.net-mvc-5 iis-8
Post parameter is always null

Since upgrading to RC for WebAPI I'm having some real odd issue when calling POST on my WebAPI. I've even …

c# .net asp.net-web-api asp.net-web-api-routing
How to write a JSON file in C#?

I need to write the following data into a text file using JSON format in C#. The brackets are important …

c# json json.net asp.net-web-api
How should I pass multiple parameters to an ASP.Net Web API GET?

I am using the .Net MVC4 Web API to (hopefully) implement a RESTful api. I need to pass in a …

asp.net asp.net-mvc rest asp.net-mvc-4 asp.net-web-api
Returning http status code from Web Api controller

I'm trying to return a status code of 304 not modified for a GET method in a web api controller. The …

c# asp.net-web-api httpresponse http-status-codes
Pass an array of integers to ASP.NET Web API?

I have an ASP.NET Web API (version 4) REST service where I need to pass an array of integers. Here …

c# arrays rest asp.net-web-api
How to return a file (FileContentResult) in ASP.NET WebAPI

In a regular MVC controller, we can output pdf with a FileContentResult. public FileContentResult Test(TestViewModel vm) { var stream = new …

c# asp.net asp.net-mvc asp.net-web-api
Make Https call using HttpClient

I have been using HttpClient for making WebApi calls using C#. Seems neat & fast way compared to WebClient. However …

c# asp.net-web-api dotnet-httpclient
Returning binary file from controller in ASP.NET Web API

I'm working on a web service using ASP.NET MVC's new WebAPI that will serve up binary files, mostly .cab …

asp.net asp.net-mvc asp.net-web-api
How to secure an ASP.NET Web API

I want to build a RESTful web service using ASP.NET Web API that third-party developers will use to access …

c# asp.net-mvc oauth asp.net-web-api