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

https://blog.csdn.net/a5534789/article/details/45201073/

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

网上了查了下,要把最后 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" 一直报错,最后加上终于好了..真是烦 ..来记录一下




原文地址:https://www.cnblogs.com/sunny3158/p/15216430.html