有的时候新建项目,默认会选择比较高的 .net framework 版本如 4.5.2
有的时候发布项目就会遇到这个问题
解决的话
改成4.0就行了!
<compilation debug="true" targetFramework="4.5.2"> 报错解决方案
原文:https://www.cnblogs.com/liuchunlin/p/11601875.html