Webapi上传数据(XML)敏感字符解决方案

方法名加特性

 [ValidateInput(false)]

 

配置文件加

<httpRuntime  requestValidationMode="2.0" targetFramework="4.5" ></httpRuntime>

 

posted @ 2018-12-27 10:30  西湖肖申克  阅读(275)  评论(0编辑  收藏  举报