405 - HTTP verb used to access this page is not allowed

时光毁灭记忆、已成空白 提交于 2019-12-24 05:33:41

问题


I have developed a site in ASP.NET 3.5

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.

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.

Any ideas?


回答1:


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



来源:https://stackoverflow.com/questions/3523061/405-http-verb-used-to-access-this-page-is-not-allowed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!