1、 在程序允许的情况下,降低.Framework的版本,具体方法如下:
原文:https://blog.csdn.net/zxsydyq/article/details/52793830
<!--修改前-->
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" /> <!—将其删除-->
</system.web>
<!--修改后-->
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
2、更改Web.config配置文件设置Unobtrusive ValidationMode的类型,具体方法如下:
<!--修改前-->
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
<!--修改后-->
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
</appSettings>

博客介绍了两项信息技术相关内容,一是在程序允许时降低.Framework版本,给出了参考原文链接;二是更改Web.config配置文件,设置Unobtrusive ValidationMode的类型。

1414

被折叠的 条评论
为什么被折叠?



