Firebird 数据访问设计器 (DDEX) 安装
您好,我想使用 firebird 库,我按照下面的说明进行操作,但我得到“找不到引用的组件‘FirebirdSql.Data.Firebird’。”错误。
说明:
先决条件
- 确保您有 Visual Studio .NET 2005 Standard 或更高版本。
- 不支持 Express 版本。
注册表更新
- 请记住更新 FirebirdDDEXProviderPackageLess32.reg 或 FirebirdDDEXProviderPackageLess64.reg 中的路径,更新的位置标记为 %Path%。
- 将 .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
- Make sure that you have Visual Studio .NET 2005 Standard or higher edition.
- Express editions are not supported.
Registry update
- Remember to update the path in FirebirdDDEXProviderPackageLess32.reg or FirebirdDDEXProviderPackageLess64.reg, places where to update it are marked %Path%.
- 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否在项目中添加了对程序集的引用?如果没有,请右键单击解决方案资源管理器中的引用,然后选择
添加引用
。找到 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.