405 - 不允许用于访问此页面的HTTP动词 [英] 405 - HTTP verb used to access this page is not allowed

查看:1148
本文介绍了405 - 不允许用于访问此页面的HTTP动词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ASP.NET 3.5中开发了一个站点

I have developed a site in ASP.NET 3.5

我已经在Windows Server 2008和iis7上部署了它。我使用的是Windows Server 2008的评估版。前天评估期已过,我格式化了我的机器并重新安装了Windows Server 2008。

I had deployed it on Windows server 2008 and iis7. I was using evaluation version of Windows server 2008. Day before yesterday the evalution period expired and I formatted my machine and re-installed the Windows server 2008.

现在,当我在IIS7上部署该站点并尝试访问它然后我收到以下错误,

Now, when I deploy the site on IIS7 and try to access it then I get following error,

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.

任何想法?

推荐答案

我刚遇到类似的问题,原因是因为facebook似乎将所有请求都作为POST而我的页面是一个静态的html文件,(默认情况下?)IIS7只会由一个获取请求

I just ran into a similar problem which turned out to be because facebook seem to make all requests as a POST and my page was a static html file, which (by default?) IIS7 will only serve by a GET request

这篇关于405 - 不允许用于访问此页面的HTTP动词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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