嗨,我想使用firebird库,我遵循了下面的说明,但是我得到了“无法找到引用的组件'FirebirdSql.Data.Firebird‘”。错误。
指示:
先决条件
确保不支持Visual edition.
注册表更新
%Path%.
Machine.config更新
将以下两个部分添加到C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config (通常位于64位系统上的C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\CONFIG\machine.config和machine.config )中.
<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.发布于 2010-02-06 15:10:47
在项目中添加了对程序集的引用吗?如果不是,右键单击“参考解决方案资源管理器”并选择“add reference”。找到Firebird客户端程序集并添加它。
https://stackoverflow.com/questions/2213373
复制相似问题