windows server 2016 IIS webapi 404 error
- In IIS select your website and double-click
Handler Mappings (处理程序映射)
- Find
ExtensionlessUrlHandler-ISAPI-4.0_32bit
and double-click - In the dialog that appears, click
Request Restrictions
- On the Verbs tab add the missing HTTP verbs separated by commas (in my case it was
PUT
andDELETE
- Click
Ok
where required and answerYes
in theEdit Script Map
dialog that pops up. - Repeat for
ExtensionlessUrlHandler-ISAPI-4.0_64bit