2015-0107

An asynchronous module or handler completed

作者: momy 分类: 编程开发 3 Comment »
摘要:An asynchronous module or handler completed while an asynchronous operation was still pending.

ASP.NET MVC5 post提交数据时报:An asynchronous module or handler completed while an asynchronous operation was still pending.错误,测试的时候提交正常数据不报错,如果提交包含javascript和html等数据的时候报以上错误,经测试系安全验证异常错误,但是界面上并未显示相关异常信息


解决方法,在Action上添加[ValidateInput(false)]Attribute关闭验证就不会报错,但是安全性考虑建议使用AntiXSS白名单过滤相关危险字符串。

标签: asynchronous MVC5 AntiXSS 阅读: 9873
上一篇: MVC5 Controller构造方法获取User为空解决方法 - 15522次
下一篇: Beyond Compare 4 key 注册码 - 31754次

网友评论

127.0.0.* 2015/1/15 23:21:00

111111

116.52.141.* 2015/1/15 23:23:36

111111

116.52.248.* 2015/3/21 19:35:38

补充 如果涉及账号验证 请删除相关cookie 课解决以上错误部分问题

向右滑动解锁留言