66
votes
10answers
17k views

JSONP with ASP.NET Web API

I am working on creating a new set of services in ASP.MVC MVC 4 using the Web API. So far, it's great. I have created the service and gotten it to work, and now I am trying to consume it using ...
11
votes
4answers
5k views

ASP.NET Web API returns 404 for PUT only on some servers

(cross post from Server Fault. I realised afterwards that I probably should have asked on stackoverflow first) Ok, I have been racking my brain and the internet for a solution to this. I just can't ...
25
votes
7answers
15k views

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

In WCF Web API I had a class of similar structure: public class SomeController : ApiController { [WebGet(UriTemplate = "{itemSource}/Items")] public SomeValue GetItems(CustomParam parameter) ...
38
votes
4answers
16k views

Mvc 4 vs. Wcf Web Api

What are the pros and cons of using each technology? WCF Web Api is now merged into Asp.net Asp.net web api now supports self hosting. I still imagine if I want to expose multiple protocol schemas ...
59
votes
2answers
13k views

ASP.NET Web API Authentication

I'm really depressed by googling a lot on Web API authentication. I need to know how to authenticate a user from a client application while using ASP.NET Web API. I have seen all the videos on its ...
23
votes
4answers
10k views

Whats the difference between WCF Web API and ASP.NET Web API

Ive done a bit of work in the past using WCF WebAPI and really liked a lot of its features, Im just playing with ASP.NET Web API at the moment and it seems completely different (IE completely removed ...
20
votes
3answers
13k views

How To Accept a File POST - ASP.Net MVC 4 WebAPI

I'm using asp.net mvc 4 webapi beta to build a rest service. I need to be able to accept POSTed images/files from client applications. Is this possible using the webapi? Below is how action I am ...
11
votes
1answer
7k views

Issue using ASP.Net MVC 4 Web API with Ninject.Web.WebApi

I'm trying to use the new ASP.Net MVC 4 Web API project template with Ninject but have hit a wall on the following error: Method 'GetFilters' in type ...
7
votes
2answers
3k views

MVC4 WebApi compress Get Method Response

I am currently working on migrating few of my MVC3 Controllers to MVC4 Api Controllers. I have implemented Compression mechanism for MVC3 controller Get Method Responses by inherting ...
7
votes
2answers
8k views

Custom MVC AuthorizeAttribute for ASP.NET Web API

I am trying to implement a custom authorization attribute on my Web API controllers, but came across an unexpected behavior. <Authorize(Users:="myUser")> Public Function ...
16
votes
5answers
15k views

Could not load file or assembly 'System.Net.Http, Version=2.0.0.0 in MVC4 Web API

I have a bit of a wired problem. I developed an app with MVC 4 and the new Web API and it works fine locally. I installed MVC4 on the server and deployed the app. Now I get the following error: ...
2
votes
1answer
3k views

WebApi Json.NET custom date handling

I have globally explicitly configured my MVC4 app to use the JSON.NET serializer . I know i have the choice of using the ISO standard dates or the old Microsoft date format when serializing dates. ...
7
votes
2answers
4k views

Upgrading to MVC4 RC: No MediaTypeFormatter is available to read an object of type 'TestRequestModel' from content with media type ''undefined''

I've been using the MVC4 beta and am currently working to upgrade to the recently released RC version. It appears that model-binding complex request types has changed, but I can't figure out how / ...
2
votes
1answer
1k views

URL encoded colon resolves in 400 Bad Request

Why does this url resolve in 400 - Bad Request? http://localhost:2785/api/ticker/Web.App.QuotesReaders/search=se%3Aabb My environment is Visual Studio 2010, MVC 4 and the controller used is a ...
0
votes
3answers
2k views

How do I register a controller that has been created in an AREA

I am using MVC4's WEB API to expose a controller. Initially I created created a MVC4 WEBAPI project, set the project not to open any web page, wait for an external app to call the URL (WEB API). The ...

1 2 3 4 5 9
15 30 50 per page