iis7.5 发布rest服务,put请求返回404错误 解决方法

时间:2021-12-26 18:30:44
iis 7.5 默认情况下,不支持Put和delete方法,网上流传好多方法,试了好多才找到解决方法,记录下来,节省遇到此类朋友的时间

修改配置文件
handlers 节点下 添加以下配置即可
"
modules="IsapiModule" scriptProcessor="c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv4.0,bitness32"
responseBufferLimit="0" />

modules="IsapiModule" scriptProcessor="c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv4.0,bitness64"
responseBufferLimit="0" />
"