Symptom
DELETE http://localhost/MySite/MyApp 405 (Method Not Allowed)
What Worked For Me
What fixed was to modify a part of the web.config file in the following manner.
By removing ExtensionlessUrlHandler-ISAPI-4.0_64bit, it started to work.
The Microsoft KB Article http://support.microsoft.com/kb/224609 was most helpful in deriving this solution for me.
According to the above article, the configuration catches "like" configurations first and thus by the time it is at your level of web application, the configuration is basically "messed up."
Side Note
Also, I did not have a proper configuration on my web interface declaration and after above issue was fixed I was starting to get an error code 500. This goes to say that if you get the error 500, the DELETE is trying to execute and you are out of the web.config issue.
In my case, I forgot to add "{id}" in my Route declaration.
[Route("{id}")]
[HttpDelete]
public void Delete(Guid id)
{
No comments:
Post a Comment