iisnode - IIS7.5: 405 Method not allowed when performing PUT request
Problem
I started to do some experimentation with Iisnode and expressjs to create a REST like API with node.
So on the server.js I created something like
app.put("/test", function(req, res){
...
});
However, when I execute the PUT Request I get a 405 Method not allowed
from the IIS 7.5 installation.
Any idea on how to solve this?
BTW, I googled already and tried to add the PUT verbs here and there in the different Handler Mappings with no success...
Solution
I now finally found the solution to this problem namely the WebDavModule was blocking my PUT requests.
To resolve the issue:
- Open your IIS Manager
- Goto your application configuration and open "Modules"
- Search WebDavModule and remove it (menu on the right)
It then worked for me.
Alternatively, in your application's web.config add
...
Discussion
View additional discussion.