嗨我想使用firebird库,我按照下面的说明操作,但是我得到“引用的组件'FirebirdSql.Data.Firebird'找不到。”错误。
指示:
先决条件
注册表更新
Machine.config更新
将以下两个部分添加到machine.config(通常位于C:\ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ CONFIG \ machine.config和C:\ WINDOWS \ Microsoft.NET \ Framework64 \ v2。 64位系统上的0.50727 \ 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.
答案 0 :(得分:1)
您是否在项目中添加了对程序集的引用?如果没有,请在解决方案资源管理器中右键单击引用,然后选择add reference
。找到Firebird客户端程序集并添加它。