Whenever I do a postback to "/", I get a 405 error. However, when I post back to "Default.aspx", things work fine.
As I am somewhat new to web devleopment, I haven't the foggiest idea on how to debug this. The issue driving me particularly nuts because I'm testing submitting a 开发者_JS百科form on the front page of the site I'm working on.
Some environmental info: - IIS 5.1 on Windows XP - We use ISAPI Rewrite to route our URLs.
Any suggestions would be helpful.
IIS 5.1 only allows HTTP requests of type to GET to unmapped files. HTTP requests of type POST, HEAD, and all others are responded to with a 405 resource not allowed error.
More information:
http://www.somacon.com/p126.php
Suggest a read of this blog post "Url Rewriting with ASP.NET" from Scott Guthrie.
The bit near the bottom entitled "Handling ASP.NET PostBacks with URL Rewriting" is particularly helpful - the ASP.NET 2.0 Control Adapter was the key for us.
精彩评论