.NET WebApi Delete方法访问提示:“HTTP 错误 405.0 - Method Not Allowed”
2018-03-22 11:32
1796 查看
.NET WebApi Delete方法访问提示:“HTTP 错误 405.0 - Method Not Allowed”解决方法如下:
1、打开IIS,选择你的站点,选择“功能视图”
2、选择“处理程序映射”
3、找到“WebDAV”选项,并右键“编辑”
4、点击“请求限制”
5、选择“谓词”菜单选项,选择“所有谓词”,并保存。
至此就可以访问了。
其实还有另外的解决方法如下:
在web.config的<system.webServer>节点下添加如下代码:<system.webServer>
<modules>
<remove name="WebDAVModule" />
</modules>
<handlers>
<remove name="WebDAV" />
</handlers>
</system.webServer>这样以来基本没有问题了。
1、打开IIS,选择你的站点,选择“功能视图”
2、选择“处理程序映射”
3、找到“WebDAV”选项,并右键“编辑”
4、点击“请求限制”
5、选择“谓词”菜单选项,选择“所有谓词”,并保存。
至此就可以访问了。
其实还有另外的解决方法如下:
在web.config的<system.webServer>节点下添加如下代码:<system.webServer>
<modules>
<remove name="WebDAVModule" />
</modules>
<handlers>
<remove name="WebDAV" />
</handlers>
</system.webServer>这样以来基本没有问题了。
相关文章推荐
- Asp.Net Core IIS发布后PUT、DELETE请求错误405.0 - Method Not Allowed 因为使用了无效方法(HTTP 谓词)
- Asp.net WebApi Put模式调用,“HTTP 错误 405.0 - Method Not Allowed”解决方法
- ABP PUT、DELETE请求错误405.0 - Method Not Allowed 因为使用了无效方法(HTTP 谓词) 引发客户端错误 No 'Access-Control-Allow-Origin' header is present on the requested resource
- HTTP 错误 405.0 - Method Not Allowed 无法显示您正在查找的页面,因为使用了无效方法(HTTP 谓词)。
- POST访问.json文件出现 HTTP 错误 405.0 - Method Not Allowed
- IIS7.5上的REST服务的Put,Delete操作发生HTTP Error 405.0 - Method Not Allowed 解决方法
- 在input中回车后页面提交导致出现HTTP 错误 405.0 - Method Not Allowed
- IIS7.5上的服务的Update和Delete操作发生HTTP Error 405.0 - Method Not Allowed 解决方法
- IIS 部署ASP.Net, WebAPI, Restful API, PUT/DELETE 报405错解决办法, webapi method not allowed 405
- 在input中回车后页面提交导致出现HTTP 错误 405.0 - Method Not Allowed
- php采用curl访问域名返回405 method not allowed提示的解决方法
- IIS7.5上的REST服务的Put,Delete操作发生HTTP Error 405.0 - Method Not Allowed 解决方法
- ASP.net POST 其他页面地址时提示405.0 - Method Not Allowed的解决
- php采用curl访问域名返回405 method not allowed提示的解决方法
- IIS 部署ASP.Net, WebAPI, Restful API, PUT/DELETE 报405错解决办法, webapi method not allowed 405
- IIS 8.0部署ASP.Net, WebAPI, Restful API, PUT/DELETE 报405错解决办法, method not allowed 405
- Apache、IIS、Nginx等绝大多数web服务器,都不允许静态文件响应POST请求,否则会返回“HTTP/1.1 405 Method not allowed”错误。
- [环境搭建]-Web Api搭建到IIS服务器后PUT请求返回HTTP Error 405.0 - Method Not Allowed 解决方法 转摘:http://blog.csdn.net/qiujuer/article/details/23827531
- HTTP 错误405.0 - Method Not Allowed
- 在input中回车后页面提交导致出现HTTP 错误 405.0 - Method Not Allowed