C# 实体框架版本=6.0.0.0错误
我安装了实体框架版本6.1.3。我有一个无法加载文件或程序集的EntityFramework,版本=6.0.0.0,区域性=中性错误 我的配置文件是:C# 实体框架版本=6.0.0.0错误,c#,entity-framework,web-config,C#,Entity Framework,Web Config,我安装了实体框架版本6.1.3。我有一个无法加载文件或程序集的EntityFramework,版本=6.0.0.0,区域性=中性错误 我的配置文件是: <configuration> <configSections> <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --&
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=1934e089" requirePermission="false"/>
</configSections>
<!--
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
The following attributes can be set on the <httpRuntime> tag.
<system.Web>
<httpRuntime targetFramework="4.5" />
</system.Web>
-->
<system.web>
<customErrors mode="Off"/>
<pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode="Never" controlRenderingCompatibilityVersion="4.0"/>
<compilation targetFramework="4.5">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B11D50A3"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7A93408"/>
<add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=03F1D5A3"/>
<add assembly="PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=1BF564E3"/>
<add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=1BF3D3E3"/>
</assemblies>
</compilation>
<httpRuntime/>
<!--<compilation debug="true"/>-->
</system.web>
如何修复错误?
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=1934e089" requirePermission="false"/>
版本号为6.0.0.0。将其更改为6.1.3.0否,6.1.3具有相同的产品版本6.0.0请检查您的软件包文件夹。您是否有EntityFramework.6.1.3,以及lib\net45文件夹中EntityFramework.dll的副本?如果没有,请从Nuget重新安装EF。我会检查它。我有一个包裹。项目正在本地运行,但未运行服务器。请帮助EntityFramework.dll是否位于服务器的/bin文件夹中?您是否使用teamcity这样的构建服务器?这可能更像是一个裸体问题。看一看Nuget包还原。是服务器的/bin文件夹中的entityframework.dll。我试过了,但没有跑。