Firebird 数据访问设计器 (DDEX) 安装

发布于 2024-08-20 15:42:23 字数 1676 浏览 6 评论 0原文

您好,我想使用 firebird 库,我按照下面的说明进行操作,但我得到“找不到引用的组件‘FirebirdSql.Data.Firebird’。”错误。

说明:

先决条件

  1. 确保您有 Visual Studio .NET 2005 Standard 或更高版本。
  2. 不支持 Express 版本。

注册表更新

  1. 请记住更新 FirebirdDDEXProviderPackageLess32.reg 或 FirebirdDDEXProviderPackageLess64.reg 中的路径,更新的位置标记为 %Path%。
  2. 将 .reg 文件安装到注册表中。

Machine.config 更新

将以下两部分添加到 machine.config(通常位于 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config 和 C:\WINDOWS\Microsoft.NET\Framework64\v2 .0.50727\CONFIG\machine.config(64 位系统)。

<configuration>
  ...
  <configSections>
    ...
    <section name="firebirdsql.data.firebirdclient" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    ...
  </configSections>
  ...
  <system.data>
    <DbProviderFactories>
      ...
      <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=%Version%, Culture=%Culture%, PublicKeyToken=%PublicKeyToken%" />
      ...
    </DbProviderFactories>
  </system.data>
  ...
</configuration> 

并替换:

%Version% With the version of the provider assembly that you have in the GAC.
%Culture% With the culture of the provider assembly that you have in the GAC.
%PublicKeyToken% With the PublicKeyToken of the provider assembly that you have in the GAC.

hi i want to use firebird library , and i followed its instruction as below , but i get "The referenced component 'FirebirdSql.Data.Firebird' could not be found." error.

instruction :

Prerequisites

  1. Make sure that you have Visual Studio .NET 2005 Standard or higher edition.
  2. Express editions are not supported.

Registry update

  1. Remember to update the path in FirebirdDDEXProviderPackageLess32.reg or FirebirdDDEXProviderPackageLess64.reg, places where to update it are marked %Path%.
  2. Install the .reg file into the registry.

Machine.config update

Add the following two sections to machine.config (located usually at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config and C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\CONFIG\machine.config on 64-bit system).

<configuration>
  ...
  <configSections>
    ...
    <section name="firebirdsql.data.firebirdclient" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    ...
  </configSections>
  ...
  <system.data>
    <DbProviderFactories>
      ...
      <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=%Version%, Culture=%Culture%, PublicKeyToken=%PublicKeyToken%" />
      ...
    </DbProviderFactories>
  </system.data>
  ...
</configuration> 

And subst:

%Version% With the version of the provider assembly that you have in the GAC.
%Culture% With the culture of the provider assembly that you have in the GAC.
%PublicKeyToken% With the PublicKeyToken of the provider assembly that you have in the GAC.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海之角 2024-08-27 15:42:23

您是否在项目中添加了对程序集的引用?如果没有,请右键单击解决方案资源管理器中的引用,然后选择添加引用。找到 Firebird 客户端程序集并添加它。

Did you add a reference to the assembly in your project? If not, right click in the solution explorer on references and choose add reference. Find the Firebird client assembly and add it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文