-Settings
IIS 7.5 and Visual Studio 2012 4.5
I have create the first webAPI project on my machine. With the code below I can change the type of verb to POST or GET and the request to the server and the response back to the client work perfectly.
As the code is below I keep getting eaither a 405 error code or a 404 not found error code.
My question is is their some type of setting that I need to add to the .config file or a setting that I need to make on the iis7.5 web server so I can get this working?
I have Google this over and over and cannot find the answer to this question.
In my JavaScript file on the client.
$.ajax(
{
url: "/api/project",
type: "PUT",
contentType: "application/json",
data:'3',
success: function (result) {
alert(result);
}
});
In the controller in c# class
public void Put(int intt)
{
var obj = intt;
}