zoukankan      html  css  js  c++  java
  • VS2010 + Entity FrameWork 4.4 +Mvc 4.0 出现的错误

    Compiler Error Message: CS0012: The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

    头次碰到这个问题,google结果,需要修改web.config文件

    添加配置节点

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

    http://stackoverflow.com/questions/1501616/is-the-combination-of-ado-net-entity-framework-and-asp-mvc-wrong-by-any-chance

    http://stackoverflow.com/questions/3219412/strange-compilation-error-in-entity-framework-and-mvc-application

  • 相关阅读:
    厕所惊魂
    感谢协助学生返校,邀请交警合影留念
    小丑杀人
    东芝Toshiba e-STUDIO打印身份证
    JavaScript
    html
    pymysql模块
    线程
    队列与进程池
    网络编程
  • 原文地址:https://www.cnblogs.com/yyjj/p/3696046.html
Copyright © 2011-2022 走看看