Fórum erro Unable to find the requested .Net Framework Data Provider. It may not be installed #398600
01/04/2011
0
Pessoal estou fazendo uma aplicação em asp ou seja delphi prism e fiz aulgumas conexao com o banco de dados firebird atraves do DDEX e aqui na minha máquina tudo funciona, então resolvir subir o banco para o meu servidor na web e por encrível que parece da minha máquina ela consegue acessar o banco de dados no servidor da web, mais quando acesso de uma outra máquina da o seguinte erros
Server Error in '/' Application. Unable to find the requested .Net Framework Data Provider. It may not be installed. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.]
System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +1402071
System.Web.UI.WebControls.SqlDataSource.GetDbProviderFactory() +67
System.Web.UI.WebControls.SqlDataSource.GetDbProviderFactorySecure() +22
System.Web.UI.WebControls.SqlDataSource.CreateConnection(String connectionString) +11
System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +117
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
System.Web.UI.WebControls.GridView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75
System.Web.UI.Control.EnsureChildControls() +102
System.Web.UI.Control.PreRenderRecursiveInternal() +42
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
estou usando o framework 4.0 e no meu servidor da web também então por que desse erro?
e também ja subir as dll FirebirdSQL.VisualEstudio.DataTools.dll e FirebirdSQL.VisualEstudio.DataToolsUI.dll
Server Error in '/' Application. Unable to find the requested .Net Framework Data Provider. It may not be installed. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.]
System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +1402071
System.Web.UI.WebControls.SqlDataSource.GetDbProviderFactory() +67
System.Web.UI.WebControls.SqlDataSource.GetDbProviderFactorySecure() +22
System.Web.UI.WebControls.SqlDataSource.CreateConnection(String connectionString) +11
System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +117
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
System.Web.UI.WebControls.GridView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75
System.Web.UI.Control.EnsureChildControls() +102
System.Web.UI.Control.PreRenderRecursiveInternal() +42
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
estou usando o framework 4.0 e no meu servidor da web também então por que desse erro?
e também ja subir as dll FirebirdSQL.VisualEstudio.DataTools.dll e FirebirdSQL.VisualEstudio.DataToolsUI.dll
Nildglan Sousa
Curtir tópico
+ 0
Responder
Posts
30/08/2011
Sidicom Ltda
Segue solução abaixo:
Adicione as seguintes referências ao seu projeto:
<sua unidade>:\Program Files (x86)\Common
Files\CodeGear Shared\Delphi Prism\Shared Assemblies\8.0\
PS: Para quem não usa 64 bits será Program
Files somente.Após realizar o procedimento acima,
você deve indicar que estes arquivos devem ser publicados junto com a
aplicação. Para isso localize os arquivos na paleta Solution Explorer ->
nodo References -> clique com o botão direito sobre o
arquivo e selecione Propriedades.
Na paleta Properties que será exibida modifique a opção Copy
Local para True. Repita este processo para os todos os arquivos.
Agora você precisa sinalizar no web.config qual o seu
Provider. Para isso inclua o seguinte trecho no seu web.config:
<configuration>
>> o conteúdo atual do seu web.config
<system.data>
<DbProviderFactories>
<clear/>
<add name="Datasnap
AdoDbx Data Provider" invariant="Borland.Data.DbxClientDriver" description=".Net Framework Data
Provider for Datasnap" type="Borland.Data.TAdoDbxDatasnapProviderFactory,
Borland.Data.DbxClientDriver, Version=15.0.0.0, Culture=neutral,
PublicKeyToken=91d62ebb5b0d1b1b" />
</DbProviderFactories>
</system.data>
</configuration>
Espero ter ajudado
Att
Eric Serafim
Adicione as seguintes referências ao seu projeto:
<sua unidade>:\Program Files (x86)\Common
Files\CodeGear Shared\Delphi Prism\Shared Assemblies\8.0\
PS: Para quem não usa 64 bits será Program
Files somente.Após realizar o procedimento acima,
você deve indicar que estes arquivos devem ser publicados junto com a
aplicação. Para isso localize os arquivos na paleta Solution Explorer ->
nodo References -> clique com o botão direito sobre o
arquivo e selecione Propriedades.
Na paleta Properties que será exibida modifique a opção Copy
Local para True. Repita este processo para os todos os arquivos.
Agora você precisa sinalizar no web.config qual o seu
Provider. Para isso inclua o seguinte trecho no seu web.config:
<configuration>
>> o conteúdo atual do seu web.config
<system.data>
<DbProviderFactories>
<clear/>
<add name="Datasnap
AdoDbx Data Provider" invariant="Borland.Data.DbxClientDriver" description=".Net Framework Data
Provider for Datasnap" type="Borland.Data.TAdoDbxDatasnapProviderFactory,
Borland.Data.DbxClientDriver, Version=15.0.0.0, Culture=neutral,
PublicKeyToken=91d62ebb5b0d1b1b" />
</DbProviderFactories>
</system.data>
</configuration>
Espero ter ajudado
Att
Eric Serafim
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)