English 中文(简体)
ASP. 网上网上表格:实体框架缺失
原标题:ASP.Net web forms compilation says Entity Framework reference missing

我有一个利用伙伴关系的网站。 网上格式和实体框架以及汇编VS2010期间给我留下以下错误:

错误 CS0012: 类型系统.Data.Objects.DataClasses。 实体 目标在未提及集会上界定。 你必须提及集会制度。 Data.Entity, edition=3.5.0.0, Culture= Neu, PublicKey Token=b77a5c561934e089.

问题是,这一提法在网上适当配置。

该项目的财产页指出,该项目中使用的框架版本为3.5,这是正确的。

任何帮助都将受到赞赏。

这是我网站上的议会部分。

<assemblies>
    <add assembly="System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>. 
问题回答

你可以展示你的网络。 字句? 我的猜测是,两种版本要么已经失效,要么可能的话,欧洲复兴开发银行没有安装。

  1. Check that the exact version you want is referenced in web.config
  2. If the assembly is in your bin directory, right click on it in Windows Explorer and choose Properties and find the version. Make sure it matches web.config.
  3. If you are relying on the GAC, open c:windowsassembly in Windows Explorer to see if that exact version of the EF assembly is there

我获得的唯一时间是,DLL在某个项目中失踪,可能不仅仅是一个根本项目。 如果你有另一个利用实体目标类别及其在那里失踪的项目,你就会错。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签