开发者

Why do I get a 405 Error in ASP.NET when posting back to "/"?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜