更新时间:2023-02-15 21:40:36
请参阅this计算器问题
基本上默认ExtensionlessUrlHandler不接受PUT和DELETE动词。只需要添加他们在web.config
Basically the default ExtensionlessUrlHandler does not accept PUT and DELETE verb. Just need to add them in the web.config
<system.webServer>
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE" type="System.Web.Handlers.TransferRequestHandler" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
</system.webServer>