IIS 7.5 405不允许的方法从StaticFileModule PUT [英] IIS 7.5 405 Method Not Allowed for PUT from StaticFileModule

查看:5194
本文介绍了IIS 7.5 405不允许的方法从StaticFileModule PUT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我整合了第三方的XML编辑器进入我们的Web应用程序和保存功能进行直接投放到该文件的Web服务器上的HTTP。

该操作系统是Windows Server 2008 R2中使用的是IIS 7.5

我们安装了Web API,因此我们已经移除WebDAV的,也有与更新web.config中:

 <清除NAME =WebDAVModule/>根据模块
<清除NAME =WebDAV的/>根据处理程序

我们已经更新了网站的处理程序映射到包括'把'动词:


  • StaticFile


  • ExtensionlessUrlHandler-ISAPI-4.0_32bit


  • ExtensionlessUrlHandler-ISAPI-4.0_64bit


我们还准备继续在小提琴手以下响应,当我们做一个PUT请求在作曲家的XML文件:

  HTTP错误405.0  - 不允许的方法因为正在使用无效的方法(HTTP动词)是无法显示您正在查找的页面。
模块:StaticFileModule通知:ExecuteRequestHandler处理程序:StaticFile错误code:0x80070001


解决方案

添加PUT,DELETE动词来PHP.cgi要求的限制。

IIS - >站点 - > DOMAIN.COM - >处理程序映射 - >编辑CGI处理程序处理您的要求 - >请求限制 - >动词标签

I'm integrating a 3rd party xml editor into our web app and the save function performs an HTTP PUT directly to the file on the web server.

The OS is Windows Server 2008 R2 using IIS 7.5

We have a Web API installed so we already have WebDAV removed and also have updated the web.config with:

<remove name="WebDAVModule" /> under modules
<remove name="WebDAV" /> under handlers

We've updated the Handler Mappings of the site to include the 'PUT' verb:

  • StaticFile

  • ExtensionlessUrlHandler-ISAPI-4.0_32bit

  • ExtensionlessUrlHandler-ISAPI-4.0_64bit

We still continue to get the following response in fiddler when we make a PUT request to an xml file in the Composer:

HTTP Error 405.0 - Method Not Allowed

The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.


Module :     StaticFileModule 

Notification :     ExecuteRequestHandler 

Handler :     StaticFile 

Error Code :     0x80070001 

解决方案

Add PUT, DELETE verbs to PHP.cgi request restrictions.

IIS -> Sites -> DOMAIN.COM -> Handler Mappings -> Edit the CGI handler handling your requests -> Request Restrictions -> Verbs tab.

这篇关于IIS 7.5 405不允许的方法从StaticFileModule PUT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆