Issue Details (XML | Word | Printable)

Key: DNET-756
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Jiri Cincura
Reporter: Farhan Wazir
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
.NET Data provider

FirebirdSql.Data.EntityFramework6.FbProviderServices..cctor() in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbProviderServices.cs:line 64

Created: 02/May/17 12:26 AM   Updated: 02/May/17 11:37 AM
Component/s: Entity Framework
Affects Version/s: 5.8.1.0
Fix Version/s: None

Environment: Windows


 Description  « Hide
On EF6 Model
public MyContext : base("TestConnectionString") <<

Stack Trace::
Exception thrown: 'System.Reflection.TargetInvocationException' in mscorlib.dll
Exception has been thrown by the target of an invocation.

>>>>>>>> Inner Exception <<<<<<<<<<<<<<<
System.TypeInitializationException: The type initializer for 'FirebirdSql.Data.EntityFramework6.FbProviderServices' threw an exception. ---> System.TypeLoadException: Could not load type 'System.Data.Entity.Infrastructure.Interception.IDbConnectionInterceptor' from assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
   at FirebirdSql.Data.EntityFramework6.FbProviderServices..ctor()
   at FirebirdSql.Data.EntityFramework6.FbProviderServices..cctor() in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbProviderServices.cs:line 64
   --- End of inner exception stack trace ---

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jiri Cincura added a comment - 02/May/17 05:33 AM
You're not using latest EF6 version.

Farhan Wazir added a comment - 02/May/17 09:15 AM
I'm using
Entity Framework 6.0
Entity Framework Firebird 5.8.1
FirebirdClient.Data.FirebirdClient 5.8.1

What is missing in it?

Farhan Wazir added a comment - 02/May/17 11:37 AM
This is App.config

<?xml version="1.0" encoding="utf-8"?>
<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.2" />
  </startup>
  <system.data>
    <DbProviderFactories>
      <remove invariant="FirebirdSql.Data.FirebirdClient" />
      <add name="FirebirdClient Data Provider" invariant="FirebirdSql.Data.FirebirdClient" description=".NET Framework Data Provider for Firebird" type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory, FirebirdSql.Data.FirebirdClient" />
    </DbProviderFactories>
  </system.data>
  <entityFramework>
    <defaultConnectionFactory type="FirebirdSql.Data.EntityFramework6.FbConnectionFactory, EntityFramework.Firebird" />
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
      <provider invariantName="FirebirdSql.Data.FirebirdClient" type="FirebirdSql.Data.EntityFramework6.FbProviderServices, EntityFramework.Firebird" />
    </providers>
  </entityFramework>
  <connectionStrings>
    <add name="testconfigCS" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=FirebirdSql.Data.FirebirdClient;provider connection string='initial catalog=C:\Users\Seejee\Documents\CONFIGURATION.FDB;data source=TestConfigDB;user id=SYSDBA;server type=1;client library=&quot;C:\Users\Seejee\Documents\Visual Studio 2015\Projects\WpfApplication1\packages\Firebird.Embedded.3.0.0.32485\build\x86\fbembed.dll&quot;;password=masterkey'" providerName="System.Data.EntityClient" />
  </connectionStrings>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="FirebirdSql.Data.FirebirdClient" publicKeyToken="3750abcc3150b00c" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.8.1.0" newVersion="5.8.1.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>