Hari ini teman saya ada masalah, verb ‘Delete’ pada Web Api mengembalikan 405 pada server Dev. Akhirnya kami menemukan 2 solusi.
- IIS-> click {nama_website} -> click Handler Mappings -> pilih WebDAV kemudian click button Request Restrictions. Pilih All Verbs
- Pada WebConfig tambahkan handler pada
<system.webServer>
.
<modules runAllManagedModulesForAllRequests="true">
<remove name="WebDAVModule"/> <!-- add this -->
</modules>
dan pada handle section, tambahkan
<handlers>
<remove name="WebDAV" />
...
</handlers>