【发布时间】:2009-10-13 22:10:28
【问题描述】:
当我在 VS dev server 下运行我的 ASPNet MVC 2 Preview 1 网站时,当我使用 Form Method "Get " - 表单有一个文本框,其中包含带有尖括号的文本(例如:"i
但是在 IIS 下,当发布相同的表单时(使用方法“Get”),我得到一个 404 页面未找到。
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Rejected-By-UrlScan
搜索了整个网络,没有任何帮助解决问题。
是的,我有
- ValidateRequest="false" 在 Views->Web.config, Main Web.Config 上设置
- 在 Controller 类以及所有 Action 方法上设置的 ValidateInput(false) 属性
这两个选项都不能帮助解决问题。
任何帮助表示赞赏
【问题讨论】:
标签: asp.net asp.net-mvc iis