Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

iisnode - IIS7.5: 405 Method not allowed when performing PUT request

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...

Problem courtesy of: Juri

Solution

I now finally found the solution to this problem namely the WebDavModule was blocking my PUT requests.

To resolve the issue:

  1. Open your IIS Manager
  2. Goto your application configuration and open "Modules"
  3. Search WebDavModule and remove it (menu on the right)

It then worked for me.

Alternatively, in your application's web.config add


    ...
    
Solution courtesy of: Juri

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

iisnode - IIS7.5: 405 Method not allowed when performing PUT request

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×