IIS 7.5、405 - 不允许用于访问此页面的 HTTP 动词
IIS 7.5, 405 - HTTP verb used to access this page is not allowed
405 - 不允许用于访问此页面的 HTTP 动词。
您要查找的页面无法显示,因为尝试访问的方法(HTTP 动词)无效。
运行 Windows 7,IIS 7.5。
前端:Angular1.x
后端:CodeIgniter (PHP)
结构:
资产/
bower_components/
管理员/
服务/
->应用/
->系统/
->index.php
->web.config
index.html
web.config
尝试 运行 /service CodeIgniter 项目 (/service/page/index) 中的方法时出错。
删除 WebDav 和允许某些 HTTP 动词的所有可能解决方案都不适合我。
在尝试所有其他解决方案并将我的服务项目作为 IIS 中的单独虚拟主机进行调试后 - 我发现我的服务项目中的 web.config 继承了先前目录的 web.config
所以,我用 system.web 和 system.webServer 部分包装了:
<location path="." inheritInChildApplications="false">
所以我的根站点中的整个 web.config 看起来像这样:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
...
</location>
</configuration>
405 - 不允许用于访问此页面的 HTTP 动词。
您要查找的页面无法显示,因为尝试访问的方法(HTTP 动词)无效。
运行 Windows 7,IIS 7.5。
前端:Angular1.x
后端:CodeIgniter (PHP)
结构:
资产/
bower_components/
管理员/
服务/
->应用/
->系统/
->index.php
->web.config
index.html
web.config
尝试 运行 /service CodeIgniter 项目 (/service/page/index) 中的方法时出错。
删除 WebDav 和允许某些 HTTP 动词的所有可能解决方案都不适合我。
在尝试所有其他解决方案并将我的服务项目作为 IIS 中的单独虚拟主机进行调试后 - 我发现我的服务项目中的 web.config 继承了先前目录的 web.config
所以,我用 system.web 和 system.webServer 部分包装了:
<location path="." inheritInChildApplications="false">
所以我的根站点中的整个 web.config 看起来像这样:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
...
</location>
</configuration>