asp.net中的web.config文件通用版本,免出现httpRuntime错误

来源:互联网 发布:js或且非符号 编辑:程序博客网 时间:2024/06/06 00:04
这个是我在开发中总结出来的web.config版,最简单,也最适用各种情况,避免出现httpRuntime错误和request.form危险等情况的出现<?xml version="1.0"?><configuration>  <system.web>    <compilation debug="true" targetFramework="4.0"/>    <httpRuntime requestValidationMode="2.0"/>    <customErrors mode="Off"/>    <pages validateRequest="false"/>  </system.web></configuration>