This is a migrated thread and some comments may be shown as answers.

Entity Framework version 6

3 Answers 198 Views
EntityFrameworkDataSource
This is a migrated thread and some comments may be shown as answers.
Jeff Waddell
Top achievements
Rank 1
Jeff Waddell asked on 19 Nov 2013, 08:16 PM
Could not load file or assembly 'EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. 

I am using EF version 6.  How can I make this work?

3 Answers, 1 is accepted

Sort by
0
Jeff Waddell
Top achievements
Rank 1
answered on 20 Nov 2013, 03:58 PM
Hello?  Anything?  I'm evaluating your WPF suite.  Is there an example of using the grid / CRUD with entity framework 6?  Don't want to give up.
0
Ron Frick
Top achievements
Rank 2
answered on 23 Feb 2014, 07:41 PM
Put this in your app.config 

<runtime>
            <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="6.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
0
daniel
Top achievements
Rank 1
answered on 12 Feb 2015, 12:48 PM
Hello, Im testing the control RadEntityDataSource but gives me an error message:

Could not load file or assembly 'EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. 

Im try copy into App.config the code have you give, I leave here my App.Config

<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=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
  </startup>
  <connectionStrings>
    <add name="T2000Entities" connectionString="metadata=res://*/T2000Model.csdl|res://*/T2000Model.ssdl|res://*/T2000Model.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=MASTERSQL;initial catalog=mydatabase;user id=myuser;password=mypass;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>
  <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>
  </entityFramework>
  <runtime>
    <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
    <bindingRedirect oldVersion="5.0.0.0" newVersion="6.0.0.0" />
    <dependentAssembly/>
    <assemblyBinding/>
  </runtime>
</configuration>

but doesn't work

Tags
EntityFrameworkDataSource
Asked by
Jeff Waddell
Top achievements
Rank 1
Answers by
Jeff Waddell
Top achievements
Rank 1
Ron Frick
Top achievements
Rank 2
daniel
Top achievements
Rank 1
Share this question
or