405 Method Not Allowed for PUT

Discussion in 'Site Programming, Development and Design' started by dblock, Jun 29, 2011.

  1. Does anyone know whether it's possible to allow PUTs on Winhost? If so, how?

    Right now I get 405 Method Not Allowed.

    Adding the following to web.config works locally, but doesn't work on Winhost:

    <remove name="PageHandlerFactory-Integrated" />
    <remove name="PageHandlerFactory-Integrated-4.0" />
    <add name="PageHandlerFactory-Integrated-4.0" path="*.aspx" verb="GET,HEAD,POST,DEBUG,PUT" type="System.Web.UI.PageHandlerFactory" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" />
    <add name="PageHandlerFactory-Integrated" path="*.aspx" verb="GET,HEAD,POST,DEBUG,PUT" type="System.Web.UI.PageHandlerFactory" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />

    Thanks
    -dB.
     
  2. Solution: disable WebDAV module.

    Winhost support pointed out the solution (thanks) - http://forums.iis.net/t/1163441.aspx.

    You need to remove the WebDAV module from the Modules in IIS manager.
     
    Last edited by a moderator: Oct 14, 2015
  3. Thanks for posting that follow-up, it will help someone else out down the road.
     

Share This Page