必须添加对程序集"System.Core"的引用

在项目下的web.config中添加

 <compilation  debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
      </assemblies>
    </compilation>

记得千万不是视图下的web.config

posted @ 2018-06-05 16:58  水上浮萍cc  阅读(489)  评论(0编辑  收藏  举报