Can anyone help with this message here Failed to locate or load the Registered . Net Framework Data Provider?

Asked

Viewed 51 times

1

I created an application with Windows Forms connecting to Firebird, where on my development machine everything works perfectly, but when I put in client machine, the following error occurs:

System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.          
    at System.Data.Common.DbProviderFactories.GetFactory (String providerInvariantName)  
    at System.Data.Entity.Internal.LazyInternalConnection.TryInitializeFromAppConfig (String name)  
    at System.Data.Entity.Internal.LazyInternalConnection.Initialize ()  
    at System.Data.Entity.Internal.LazyInternalConnection.get_ConnectionHasModel ()  
    at System.Data.Entity.Internal.LazyInternalContext.InitializeContext ()  
    at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType (Type entityType)  
    at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize ()  
    at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext ()  
    at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider ()  
    at System.Linq.Queryable.Where [TSource] (IQueryable`1 source, Expression`1 predicate)  
    at Infrastructure.Data.Seedwork.Repository`1.GetFiltered (Expression`1 filter)  
    at SanNuvens.SpedEFD.FrmGeraSped.FrmGeraSped_Load (Object sender, EventArgs e)  
    at System.Windows.Forms.Form.OnLoad (EventArgs and)  
    at System.Windows.Forms.Form.OnCreateControl ()  
  • how is your app.config ?

  • <configuration>&#xA; <connectionStrings>&#xA; <add name="MainBCUnitOfWork" connectionString="Server=192.168.7.162;User=SYSDBA;Password=a123456;Database=C:\Gerencial\Sans\Banco\geral.fdb;Port=3050;Dialect=3;Charset=ISO8859_1" providerName="FirebirdSql.Data.FirebirdClient"/> </connectionStrings>

  • on the client machine, is taking the library containing the Provider FirebirdSql.Data.FirebirdClient ?

  • then Rovann la in the client folder along with the dll needed to Firebirdsql.Data.Firebirdclient.dll this is also there...

  • in your customer app.config, the dll is registered in the section <system.data>?

  • Ricardo Punctual sorry for the delay and thank you for your attention, I’m sorry but I didn’t understand your question, and how I would do that ??

Show 1 more comment

1 answer

0

had to add in the machine.config file that gets C: Windows Microsoft.NET Framework version Config the following lines

in Configsection

and in

Browser other questions tagged

You are not signed in. Login or sign up in order to post.