locked
Http-PUT and WebDAV module RRS feed

  • Question

  • User-1447435113 posted

    If I want to make a Http-Put request, I have to remove WebDAV module from IIS, at least from the WebAPI application:

    MyRestfulApplication/IIS/Modules/WebDAVModule --> right click and remove.

    As far as I know WebDAV module handles other than Http-Get and Http-Post requests. So, Http-Put request is handled by WebDAV module. When I make a Http-Put request, I get 405 response. It seems that it is a normal behaviour. Is it?

    Friday, March 9, 2012 1:43 PM

All replies

  • User-1120861121 posted

    Hello Silgar, I have been facing the same issue... I resolved this problem by adding this script in the Web.Config file of my MVC as well as Web API projects. I did not make any changes in my IIS

    <modules runAllManagedModulesForAllRequests="true">
         <remove name="WebDAVModule"/>
    </modules>

    You need to add this in the <system.webServer> section.

    Well I know your questions is quite old.... I was searching online for WebDav and PUT operations and came across this post.... So this solution worked for me.... If anybody is facing the same 405 issue for PUT operation, do try the solution I mentioned above. Thanks.

    Monday, November 11, 2013 1:53 PM
  • User-1588480722 posted

    There are plenty of solutions and all deal with either adding missing verbs to the module or removing WebDAV module from being executed inside your application.

    And of all the solutions, what Shivanand suggested is the simplest and doesn't interfere with other applications hosted in the server

    Wednesday, November 13, 2013 2:01 AM
  • User701750444 posted

    Thanks Shivanand it worked for me.

    Wednesday, July 5, 2017 8:58 PM