【发布时间】:2016-01-17 21:01:28
【问题描述】:
我在使用请求类型 PUT 发布 http 时遇到问题,它未在 IIS 上启用,有人可以帮助我了解如何通过 web.config 更改启用 PUT 请求类型。
失败的请求跟踪日志:
<failedRequest url="http://localhost:80/.../TestHandler.ashx"
siteId="1"
appPoolId="DefaultAppPool"
processId="10708"
verb="PUT"
remoteUserName=""
userName=""
tokenUserName="NT AUTHORITY\IUSR"
authenticationType="anonymous"
activityId="{00000000-0000-0000-3D85-0580000000FE}"
failureReason="STATUS_CODE"
statusCode="405"
triggerStatusCode="405"
timeTaken="0"
xmlns:freb="http://schemas.microsoft.com/win/2006/06/iis/freb"
>
编辑: 我的机器上没有安装 WebDAV 模块,我的一位同事在他的机器上安装了它。尝试了下面提到的解决方案,但没有成功。
【问题讨论】:
标签: asp.net .net-3.5 iis-7.5 ashx http-put