无法将 Firebird DDEX .NET 提供程序集成与 Visual Studio 2010 配合使用
描述:安装 Firebird 客户端和 DDEX for Visual Studio 2010 (.NET 4.0) 后,我无法从 Visual Sutio 2010(专业版)-> 服务器资源管理器 -> 数据连接 -> 添加连接添加到 firebird 的新连接。
执行的步骤: - 安装了 firebirdclient (NETProvider-2.6.0.msi -> C:\Program Files\FirebirdClient) - 将程序集(FirebirdSql.Data.FirebirdClient.dll)添加到 gac 证明:
C:\Program Files\FirebirdClient>gacutil /i
firebirdsql.data.firebirdclient.dll Microsoft (R) .NET 全局程序集缓存实用程序。版本4.0.30319.1 版权所有 (c) Microsoft Corporation。保留所有权利。
程序集成功添加到缓存中
- 获得 DDEX 2.0.5,-> C:\Program Files\FirebirdClient\DDEX205
- 将 FirebirdSql.VisualStudio.DataTools.dll 添加到 gac (有人写的可能有帮助)
C:\Program Files\FirebirdClient\DDEX205>gacutil
/i FirebirdSql.VisualStudio.Data 工具.dll Microsoft (R) .NET 全局程序集缓存实用程序。版本4.0.30319.1 版权所有 (c) Microsoft Corporation。保留所有权利。
程序集成功添加到缓存中
- 编辑VS2010版本的FirebirdDDEXProvider32
@=".NET Framework 数据提供程序 火鸟” “显示名称”=“提供商_显示名称”, FirebirdSql.VisualStudio.DataTools.Properties.Resources” “ShortDisplayName”=“Provider_ShortDisplayName,FirebirdSql.VisualStudio.DataTools.Properties.Resources” “描述”=“Provider_Description”, FirebirdSql.VisualStudio.DataTools.Properties.Resources” “代码库”=“C:\程序” 文件\FirebirdClient\DDEX205\FirebirdSql.VisualStudio.DataTools.dll” “InvariantName”=“FirebirdSql.Data.FirebirdClient” “技术”="{77AB9A9D-78B9-4ba7-91AC-873F5338F1D2}"
也安装了该文件(整个文件) - 在 C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config 在我添加中
<section name="firebirdsql.data.firebirdclient" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
我添加了
<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=4.0.0.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c" />
我可以通过 FbConnection 连接到 Visual Studio 2010 IDE 中的 firebird 数据库
我可以服务器资源管理器 ->数据连接->添加连接并选择 Firebird 数据源,但我再也没有得到任何进一步的信息!一旦我在任何字段中按下一个键,窗口就会消失(或者如果我选择一种语言,无论什么方言,窗口就会消失......)。
有人可以帮助我吗?
Description: After installing Firebird Client and DDEX for Visual Studio 2010 (.NET 4.0) I am unable to add new connection to firebird from Visual Sutio 2010 (Professional)->Server Explorer->Data Connections->Add Connection.
performed steps:
- installed firebirdclient (NETProvider-2.6.0.msi -> C:\Program Files\FirebirdClient)
- added assembly (FirebirdSql.Data.FirebirdClient.dll) to gac
proof:
C:\Program Files\FirebirdClient>gacutil /i
firebirdsql.data.firebirdclient.dll
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.Assembly successfully added to the cache
- got DDEX 2.0.5, -> C:\Program Files\FirebirdClient\DDEX205
- added FirebirdSql.VisualStudio.DataTools.dll to gac (somebody wrote it might help)
C:\Program Files\FirebirdClient\DDEX205>gacutil
/i FirebirdSql.VisualStudio.Data
Tools.dll
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.Assembly successfully added to the cache
- edited VS2010 version of FirebirdDDEXProvider32
@=".NET Framework Data Provider for
Firebird"
"DisplayName"="Provider_DisplayName,
FirebirdSql.VisualStudio.DataTools.Properties.Resources"
"ShortDisplayName"="Provider_ShortDisplayName,FirebirdSql.VisualStudio.DataTools.Properties.Resources"
"Description"="Provider_Description,
FirebirdSql.VisualStudio.DataTools.Properties.Resources"
"CodeBase"="C:\Program
Files\FirebirdClient\DDEX205\FirebirdSql.VisualStudio.DataTools.dll"
"InvariantName"="FirebirdSql.Data.FirebirdClient"
"Technology"="{77AB9A9D-78B9-4ba7-91AC-873F5338F1D2}"
installed that (the whole file) as well
- in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config
in I added
<section name="firebirdsql.data.firebirdclient" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
in I added
<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=4.0.0.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c" />
I can connect via FbConnection to a firebird db
in Visual Studio 2010 IDE I can server explorer -> Data Connections -> Add Connection and choose Firebird Data Source but I never get any further! As soon as I press a key in any field the windows disapears (or if I choose a language, dialect whatever, windows disapears...).
can anybody help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的天啊
版本是 2.6.0.0 而不是 4.0.0.0
=>
它在 .NET 4.0 上运行,但程序集版本是 2.6.0.0
重新启动 Visual Studio 后,它就可以工作了!
OMG
Version is 2.6.0.0 not 4.0.0.0
=>
it runs on .NET 4.0 but the assembly version IS 2.6.0.0
After this restart visual studio and it WORKS!
确保编辑位于
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config
的名为Machine.config
的 .NET Framework 文件对于 Windows 7 64 位,还需要编辑
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config
首先,您必须通过 gacutil 获取要放置在 Machine.config 文件中的准确值:
sample添加提供者:
make sure edit the .NET framework file called
Machine.config
atC:\Windows\Microsoft.NET\Framework\v4.0.30319\Config
for windows 7 64 bit also edit
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config
First you must obtain accurate values to be placed in the Machine.config file, via gacutil:
sample of adding the provider: