Okay I think you were talking about the machine.config entry in 
system.data.DbProviderFactories:

I have the following entry in it:
<add name="FirebirdClient Data Provider" 
invariant="FirebirdSql.Data.FirebirdClient" description=".NET Framework Data 
Provider for Firebird" 
type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory, 
FirebirdSql.Data.FirebirdClient, Version=3.2.0.0, Culture=neutral, 
PublicKeyToken=3750abcc3150b00c"/>

I have tried to replace this with the FbProviderServices like you said to do so 
in my app.config, but it didnt make a difference still the same error message.

From: rand.ran...@outlook.com
To: firebird-net-provider@lists.sourceforge.net
Date: Tue, 22 Oct 2013 11:31:46 +0000
Subject: Re: [Firebird-net-provider] DbProviderServices




Sorry for my late reply.

I have exchanged the config line as you mentioned,

so instead of
<provider invariantName="FirebirdSql.Data.FirebirdClient" 
type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory, 
FirebirdSql.Data.FirebirdClient"/>

I have:
<provider invariantName="FirebirdSql.Data.FirebirdClient" 
type="FirebirdSql.Data.FirebirdClient.FbProviderServices, 
FirebirdSql.Data.FirebirdClient" />

But I am now getting the same error just mentioning the "FbProviderServices":

The 'Instance' member of the Entity Framework provider type 
'FirebirdSql.Data.FirebirdClient.FbProviderServices, 
FirebirdSql.Data.FirebirdClient, Version=3.2.0.0, Culture=neutral, 
PublicKeyToken=3750abcc3150b00c' did not return an object that inherits from 
'System.Data.Entity.Core.Common.DbProviderServices'. Entity Framework providers 
must inherit from this class and the 'Instance' member must return the 
singleton instance of the provider. This may be because the provider does not 
support Entity Framework 6 or later; see 
http://go.microsoft.com/fwlink/?LinkId=260882 for more information.

You said:
And I suppose you have proper record in DbProviderFactories.

Didnt really understand, what you mean ?

If you meant the appconfig, that I am missing something here is my full 
app.config:

<configuration>
  <configSections>
    <section name="entityFramework" 
type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, 
EntityFramework, Version=6.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
    <section name="log4net" 
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
    <!-- For more information on Entity Framework configuration, visit 
http://go.microsoft.com/fwlink/?LinkID=237468 -->
  </configSections>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
  </startup>
  <entityFramework>
    <defaultConnectionFactory 
type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
    <providers>
      <provider invariantName="System.Data.SqlClient" 
type="System.Data.Entity.SqlServer.SqlProviderServices, 
EntityFramework.SqlServer"/>
      <provider invariantName="FirebirdSql.Data.FirebirdClient" 
type="FirebirdSql.Data.FirebirdClient.FbProviderServices, 
FirebirdSql.Data.FirebirdClient" />
    </providers>
  </entityFramework>
</configuration>

Thanks for your help up till now.


> Date: Tue, 22 Oct 2013 12:50:20 +0200
> From: disk...@cincura.net
> To: firebird-net-provider@lists.sourceforge.net
> Subject: Re: [Firebird-net-provider] DbProviderServices
> 
> On Tue, Oct 22, 2013 at 11:25 AM, Rand Random <rand.ran...@outlook.com> wrote:
> > <provider invariantName="FirebirdSql.Data.FirebirdClient"
> > type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory,
> > FirebirdSql.Data.FirebirdClient" />
> 
> Now I see it. This line is wrong. It should be
> <provider invariantName="FirebirdSql.Data.FirebirdClient"
> type="FirebirdSql.Data.FirebirdClient.FbProviderServices,
> FirebirdSql.Data.FirebirdClient" />
> 
> And I suppose you have proper record in DbProviderFactories.
> 
> -- 
> Jiri {x2} Cincura (x2develop.com founder)
> http://blog.cincura.net/ | http://www.ID3renamer.com
> 
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
> _______________________________________________
> Firebird-net-provider mailing list
> Firebird-net-provider@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
                                          

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider              
                          
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to