Some ProGet feed endpoints use PUT or DELETE requests. If the WebDAV module is enabled in IIS, these requests can result in a 405 Method Not Allowed error. This article details several methods of disabling the WebDAV module.
This is the easiest solution if WebDAV is not desired for any website running on IIS on the server.
Open a Windows Explorer window and navigate to
Control Panel\All Control Panel Items\Programs and Features.
Select the Turn Windows features on or off option in the menu on the left.
Uncheck the following option: Internet Information Services → World Wide Web Services → Common HTTP Features → WebDAV Publishing.
Click OK. You may need to restart the server for the change to take effect.
This solution requires the IIS Manager program to be installed. It does not affect other applications running on IIS.
Open the IIS Manager and navigate to the ProGet site.
Double-click the Handler Mappings item.
WebDAV and select Remove.
Navigate back to the ProGet site.
Double-click the Modules item.
WebDAVModule and select Remove.
This solution requires editing an XML configuration file directly, but does not require any extra software.
Edit Web.config. By default, it is located in
<modules> section in the
<remove name="WebDAVModule" /> before
<handlers> section in the
<remove name="WebDAV" /> before
You may need to recycle the app pool or restart IIS for this change to take effect.