无法将 Firebird DDEX .NET 提供程序集成与 Visual Studio 2010 配合使用

发布于 2024-10-08 21:44:48 字数 2491 浏览 5 评论 0原文

描述:安装 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 技术交流群。

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

发布评论

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

评论(2

习ぎ惯性依靠 2024-10-15 21:44:48

我的天啊

C:\程序
文件\FirebirdClient>gacutil /l
Firebirdsql.data.firebirdclient
Microsoft (R) .NET 全球大会
缓存实用程序。版本4.0.30319.1
版权所有 (c) Microsoft Corporation。
保留所有权利。

全局程序集缓存包含
以下程序集:
Firebirdsql.data.firebirdclient,
版本=2.6.0.0,文化=中立,
PublicKeyTo ken=3750abcc3150b00c,
处理器架构=MSIL

项目数量 = 1

  • 版本是 2.6.0.0 而不是 4.0.0.0
    =>

它在 .NET 4.0 上运行,但程序集版本是 2.6.0.0

重新启动 Visual Studio 后,它就可以工作了!

OMG

C:\Program
Files\FirebirdClient>gacutil /l
Firebirdsql.data.firebirdclient
Microsoft (R) .NET Global Assembly
Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation.
All rights reserved.

The Global Assembly Cache contains the
following assemblies:
Firebirdsql.data.firebirdclient,
Version=2.6.0.0, Culture=neutral,
PublicKeyTo ken=3750abcc3150b00c,
processorArchitecture=MSIL

Number of items = 1

  • 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!

泛滥成性 2024-10-15 21:44:48

在 Visual Studio 2010 IDE 中我可以使用服务器资源管理器 ->数据连接->添加连接并选择 Firebird 数据源,但我再也没有得到任何进一步的信息!一旦我在任何字段中按下一个键,窗口就会消失(或者如果我选择一种语言,无论什么方言,窗口都会消失......)。

确保编辑位于 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 文件中的准确值:

c:\>gacutil -l FirebirdSQL.Data.FirebirdClient
Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.1
Copyright (c) Microsoft Corporation.  All rights reserved.

The Global Assembly Cache contains the following assemblies:
  FirebirdSQL.Data.FirebirdClient, Version=2.6.0.0, Culture=neutral, PublicKeyTo
ken=3750abcc3150b00c, processorArchitecture=MSIL

sample添加提供者:

<DbProviderFactories>
  <add name="Microsoft SQL Server Compact Data Provider" invariant="System.Data.SqlServerCe.3.5" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
  <add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
  <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=2.6.0.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c, processorArchitecture=MSIL" />
</DbProviderFactories>

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...).

make sure edit the .NET framework file called Machine.config at C:\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:

c:\>gacutil -l FirebirdSQL.Data.FirebirdClient
Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.1
Copyright (c) Microsoft Corporation.  All rights reserved.

The Global Assembly Cache contains the following assemblies:
  FirebirdSQL.Data.FirebirdClient, Version=2.6.0.0, Culture=neutral, PublicKeyTo
ken=3750abcc3150b00c, processorArchitecture=MSIL

sample of adding the provider:

<DbProviderFactories>
  <add name="Microsoft SQL Server Compact Data Provider" invariant="System.Data.SqlServerCe.3.5" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
  <add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
  <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=2.6.0.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c, processorArchitecture=MSIL" />
</DbProviderFactories>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文