1

In my WebAPI application, I faced similar issue of 405 method not allowed web api and this issue; Asp.NET Web API - 405 - HTTP verb used to access this page is not allowed - how to set handler mappings

I had to disable WebDAVModule in my web.config like below;

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

 <handlers>
 <remove name="WebDAV"/>
 </handlers>

I do not depend explicitly to this module, but I am just wondering that would disabling this module could create any significant performance/security problems? I checked documentation below, but could not find anything specific to it.

https://learn.microsoft.com/en-us/iis/get-started/whats-new-in-iis-7/what39s-new-for-webdav-and-iis-7

Teoman shipahi
  • 47,454
  • 15
  • 134
  • 158
  • 2
    Many IIS servers don't even have WebDAV installed, so merely deleting it from your config file won't have any harm. It would improve performance and security, as IIS loads one less module. – Lex Li Apr 18 '18 at 21:09
  • The only downside really would be if your users use WebDAV for anything in your site... – ADyson Apr 18 '18 at 22:43
  • Thanks for confirming on this @LexLi. – Teoman shipahi Apr 19 '18 at 02:19

0 Answers0