gpt4 book ai didi

c# - 405 - 不允许用于访问此页面的 HTTP 动词。 [IIS 8.5] [Windows Server 2012 R2]

转载 作者:太空狗 更新时间:2023-10-29 22:57:21 25 4
gpt4 key购买 nike

我有一个新的 iis 服务器,一段时间后我正在寻找错误的解决方案:

405 - HTTP verb used to access this page is not allowed. The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

我见过以下解决方案:
1.

 <system.webServer>
<modules>
<remove name="WebDAVModule" />
</modules>
<handlers>
<remove name="WebDAV" />
</handlers>
</system.webServer>


2.IIS设置http://www.somacon.com/p126.php

解决方法一,导致Internal server error,后来找不到解决办法。解决方案 2,我无法在 iis 8.5 中找到属性窗口,因此无法尝试相同的方法。

请帮忙

最佳答案

我在尝试第一个解决方案时也遇到了相同的内部服务器错误,描述于 HTTP 405 error with Web API .因为我什至没有使用 WebDAV,所以我选择将它从 IIS 中完全删除(见下面的屏幕截图)。在需要重新启动服务器后,问题得到解决。

Remove WebDAV

关于c# - 405 - 不允许用于访问此页面的 HTTP 动词。 [IIS 8.5] [Windows Server 2012 R2],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39445717/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com