I have got a new iis server and from a while i am finding solution for error :
我有一个新的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.
不允许使用HTTP动词访问此页面。您正在查找的页面无法显示,因为使用了无效的方法(HTTP谓词)来尝试访问。
I have seen below solutions:
1.
我看到了下面的解决方案:1。
<system.webServer>
<modules>
<remove name="WebDAVModule" />
</modules>
<handlers>
<remove name="WebDAV" />
</handlers>
</system.webServer>
2. IIS Settings http://www.somacon.com/p126.php
2。IIS设置http://www.somacon.com/p126.php
Solution 1, causes Internal server error and later unable to find the solution. Solution 2, i am unable to find Property window in iis 8.5, so unable to try the same.
解决方案1,导致内部服务器错误,随后无法找到解决方案。解决方案2,我无法在iis 8.5中找到属性窗口,因此无法尝试相同的操作。
Please help
请帮助
2 个解决方案
#1
2
I also had the same internal server error when attempting the first solution, described at HTTP 405 error with Web API. Since I wasn't even using WebDAV, I opted to remove it entirely from IIS (see screenshot below). After a required server restart, the problem was resolved.
在尝试第一个解决方案时,我也遇到了相同的内部服务器错误,Web API在HTTP 405中描述了错误。由于我甚至没有使用WebDAV,所以我选择完全从IIS中删除它(参见下面的屏幕截图)。在必要的服务器重启之后,问题得到了解决。
#2
0
One of my colleague helped me out. I was missing some of the major iis features.
我的一个同事帮助了我。我错过了iis的一些主要特性。
Goto Add Roles and Features Wizard, then Web Server (IIS)> Web Server > Application Development > Select ASP.net 3.5 and Asp.net 4.5 and click Install.
Goto添加角色和特性向导,然后Web服务器(IIS)> Web服务器>应用程序开发>选择ASP.net 3.5和ASP.net 4.5,然后单击Install。
Goto cmd prompt and iisreset.
Goto cmd提示符和iisreset。
For WCF service, Kindly check Http Activation under WCF Services.
对于WCF服务,请检查WCF服务下的Http激活。
Hope this may help you and save your time.
希望这能帮助你,节省你的时间。
#1
2
I also had the same internal server error when attempting the first solution, described at HTTP 405 error with Web API. Since I wasn't even using WebDAV, I opted to remove it entirely from IIS (see screenshot below). After a required server restart, the problem was resolved.
在尝试第一个解决方案时,我也遇到了相同的内部服务器错误,Web API在HTTP 405中描述了错误。由于我甚至没有使用WebDAV,所以我选择完全从IIS中删除它(参见下面的屏幕截图)。在必要的服务器重启之后,问题得到了解决。
#2
0
One of my colleague helped me out. I was missing some of the major iis features.
我的一个同事帮助了我。我错过了iis的一些主要特性。
Goto Add Roles and Features Wizard, then Web Server (IIS)> Web Server > Application Development > Select ASP.net 3.5 and Asp.net 4.5 and click Install.
Goto添加角色和特性向导,然后Web服务器(IIS)> Web服务器>应用程序开发>选择ASP.net 3.5和ASP.net 4.5,然后单击Install。
Goto cmd prompt and iisreset.
Goto cmd提示符和iisreset。
For WCF service, Kindly check Http Activation under WCF Services.
对于WCF服务,请检查WCF服务下的Http激活。
Hope this may help you and save your time.
希望这能帮助你,节省你的时间。