Entity Framework version 6

4 posts, 0 answers
  1. Jeff Waddell
    Jeff Waddell avatar
    16 posts
    Member since:
    Jul 2004

    Posted 19 Nov 2013 Link to this post

    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?
  2. Jeff Waddell
    Jeff Waddell avatar
    16 posts
    Member since:
    Jul 2004

    Posted 20 Nov 2013 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ron Frick
    Ron Frick avatar
    28 posts
    Member since:
    Nov 2009

    Posted 23 Feb 2014 in reply to Jeff Waddell Link to this post

    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>
  5. daniel
    daniel avatar
    1 posts
    Member since:
    Feb 2015

    Posted 12 Feb 2015 in reply to Ron Frick Link to this post

    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

Back to Top