错误 the type "xxxx" is defined in an assembly that is not refernced.You must add a reference to assem

遇到这个错误两次了...第一次我忘了是怎么解决的,今天又遇到了..

网上了查了下,要把最后 System.core开始到结尾的字符串配置到web.config里面。请看下面:

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

今天刚开始没有加这个targeFramework="4.0" 一直报错,最后加上终于好了..真是烦 ..来记录一下
posted on 2015-04-22 21:26  狂奔的冬瓜  阅读(637)  评论(0编辑  收藏  举报