주간 베스트 월간 베스트 3개월 베스트 베스트 게시물
연길시 신화서점 조선말 도서

Visual Studio connet Firebird

hmily1314 | 2013.04.14 23:17:12 댓글: 0 조회: 2279 추천: 0
분류웹 프로그래밍 https://life.moyiza.kr/itstudy/1856738

 

How to install Firebird DDEX Provider for .NET intoVisual Studio 2010 Professional on 32bit Win7

 

1.Download and install VS2010 SDK from Microsoft

 

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&display>

 

2.Download from Firebird

 

http://www.firebirdsql.org/index.php?op=files&id=netprovider

 

download#1                     Firebird ADO.NETData Provider downloads

                                        Version2.6 for .NET 4.0/3.5/2.0 [with Entity Framework support]

                                                     -FirebirdClient.msi            (612 kb, 17thNov 2010)

 

download#2                     DDEX Provider forVisual Studio downloads

                                        Version2.05 for Visual Studio 2005/2008/2010

                                                     -DDEXProvider.zip          (36kb, 26th Apr2010)

 

3.Install FirebirdClient.msi (install to C:\Program Files\FirebirdClient folder)

 

4.Extract DDEXProvider.zip to C:\Program Files\FirebirdClient\DDEXProvider folder

 

5.Add "FirebirdClient" to GAC

 

Start- Programs - MS Visual Studio 2010 - Visual Studio 2010 Tools - Visual StudioCommand Prompt (2010)

 

>cd\Program Files\FirebirdClient

>gacutil /i FirebirdSql.Data.FirebirdClient.dll

 

itshould respond "Assembly successfully added to the cache")

 

>gacutil /l FirebirdSql.Data.FirebirdClient

 

makea note of the reported values for Version, Culture, and PublicKeyToken (use Ctrl-C& Ctrl-V to minimise human error)

 

6.Add FirebirdSql.VisualStudio.DataTools.dll to GAC

 

>cd DDEXProvider

>gacutil /i FirebirdSql.VisualStudio.DataTools.dll

 

itshould respond "Assembly successfully added to the cache")

 


7.Edit machine.config for .NET framework (using the values from step 5)

 

EditC:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config with a texteditor, and add the new text using the values from step 5 instead of the ones Ihave highlighted.

 

<configuration>

                  <configSections>

                                   ...

<sectionname="firebirdsql.data.firebirdclient"type="System.Data.Common.DbProviderConfigurationHandler, System.Data,Version=2.0.0.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c"/>

...

</configSections>

...

<system.data>

  <DbProviderFactories>

                   ...

<add name="FirebirdClientData 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"/>

...

                                   </DbProviderFactories>

                  </system.data>

                  ...

</configuration>

 

EditC:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config with a texteditor, and add the new text using the values from step 5 instead of the ones Ihave highlighted. (note: text is not the same)

 

<configuration>

                  <configSections>

                                   ...

<sectionname="firebirdsql.data.firebirdclient"type="System.Data.Common.DbProviderConfigurationHandler, System.Data,Version=4.0.0.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c"/>

...

</configSections>

...

<system.data>

  <DbProviderFactories>

                   ...

<addname="FirebirdClient Data Provider"invariant="FirebirdSql.Data.FirebirdClient" description=".NetFramework Data Provider for Firebird" type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory,FirebirdSql.Data.FirebirdClient, Version=2.6.0.0,Culture=neutral, PublicKeyToken=3750abcc3150b00c"/>

...

                                   </DbProviderFactories>

                  </system.data>

                  ...

</configuration>

 

8.Import registry entries

 

Edit(or edit a copy of it)

C:\ProgramFiles\FirebirdClient\DDEXProvider\reg_files\VS2005\withSDK\FirebirdDDEXProvider32.reg

 

-change "8.0" to "10.0" in all registry keys mentioned forVisual Studio

 

-replace the 2 instances of %PATH% with "C:\\Program Files\\FirebirdClient\\DDEXProvider"(escapethe backslash)

 

-save, then merge the reg file

 

9.Start Visual Studio, go to Server Explorer, right click on Data Connections,click on Add Connection...

 

Youshould see Firebird Data Source in the list of items presented. On the nextscreen you should be able to enter connection details such as server, username,password etc...

 

Ifthe dialog disappears upon input, then you may want to perform some checks:

 

1.Use gacutil /l FirebirdSql.Data.FirebirdClient to check that FirebirdClient isin the GAC

2.Use gacutil /l FirebirdSql.VisualStudio.DataTools to check that dll is also inthe GAC

3.Check that you have edited the machine.config files for every version of .NETframework installed, you may have to download and install missing frameworks!

4.Check that the values used in machine.config are those ofFirebirdSql.Data.FirebirdClient and not FirebirdSql.VisualStudio.DataTools

5.Check the Version in configSection is either 4.0.0.0 for .NET 4 or 2.0.0.0 forall earlier versions of .NET

6.Check the registry keys you imported

추천 (0) 선물 (0명)
IP: ♡.247.♡.14
3,006 개의 글이 있습니다.
제목 글쓴이 날짜 조회
관리자
2003-09-20
11872
관리자
2003-09-20
11422
관리자
2003-09-20
20556
지구인
2010-08-27
19350
지구인
2009-09-07
13672
SOLIDH
2010-01-29
15632
엔죠라이프
2004-10-07
16727
CHOSUN
2013-07-23
1726
지금이순감
2013-07-19
2348
hmily1314
2013-06-05
2045
hmily1129
2013-05-28
3087
hmily1129
2013-05-24
1479
hmily1129
2013-05-20
2029
hmily1129
2013-05-04
1813
hmily1314
2013-04-28
2376
hmily1314
2013-04-22
2516
hmily1314
2013-04-14
1738
hmily1314
2013-04-14
1670
hmily1314
2013-04-14
2279
CHOSUN
2013-04-11
2366
CHOSUN
2013-04-11
2227
CHOSUN
2013-04-11
1460
CHOSUN
2013-04-11
1502
CHOSUN
2013-04-11
1607
CHOSUN
2013-04-11
1416
CHOSUN
2013-04-11
1536
진심은
2013-03-29
4125
진심은
2013-03-29
4143
모이자 모바일