This is a migrated thread and some comments may be shown as answers.

Firebird: where to copy ado.net client?

5 Answers 170 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
JK
Top achievements
Rank 1
JK asked on 04 Nov 2009, 08:27 AM
Hello,
I'm trying to set up the connection with database from OpenAccess. The first problem is during test of connection it shows the message that it can't find "Cause: System.IO.FileNotFoundException: Could not load file or assembly 'FirebirdSql.Data.FirebirdClient, Version=2.1.0.0, Culture=neutral, PublicKeyToken="

I think 2 reasons may cause this message:
1. There is not this file in the right place
2. There is file but it has different version of assembly.

Please, answer:
1. Where should this file be placed ?
2. Is it important to use exact this version of assembly? What if I have 2.5.1.0, will it work?

Thanks

5 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 05 Nov 2009, 09:28 AM
Hello JK,

I assume that you have downloaded the FirebirdSql.Data.FirebirdClient.dll version 2.5.1.0 somewhere on your machine. In order this particular version to be used, you can add the following <dependentAssembly> node to your App.config file inside the OpenAccess-enabled project:
<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <dependentAssembly>
            <assemblyIdentity name="FirebirdSql.Data.FirebirdClient" publicKeyToken="3750abcc3150b00c" culture="neutral" />
            <bindingRedirect oldVersion="2.1.0.0" newVersion="2.5.1.0"/>
            <codeBase version="2.5.1.0" href="C:\FirebirdSql.Data.FirebirdClient.dll"/>
         </dependentAssembly>
      </assemblyBinding>
   </runtime>
   ...
</configuration>
This would fix the problem during runtime of the application. To make it work in design time as well (when the wizards are used), add the same node to the machine.config or devenv.exe.config file residing in the install path of Visual Studio. Hope that helps.

Regards,
Alexander
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
JK
Top achievements
Rank 1
answered on 08 Nov 2009, 06:52 AM
Hello,
It helped but a little bit that's almost nothing. Because I have the next problem - wizard can't establish the connection with database. I suspect that it doesn't know the server of embedded db that is just fbembed.dll. But there is no word in your "help" how to set up the path to this file.The working with you "ORM" is so painful that I'm thinking about giving of using it at all, I spent too much time and efforts without any success. By the way I suggest you to think about firing your technical writer because these so obvious things should be in you "help".
Cheers
0
JK
Top achievements
Rank 1
answered on 08 Nov 2009, 07:18 AM
And by the way, fire your build engineer because there is no any "Uninstall" link or button. Bad manners.
Cheers
0
PetarP
Telerik team
answered on 11 Nov 2009, 05:51 PM
Hi JK,

We are truly sorry for any inconvenience this might have caused you. Since we inherited the documentation we are putting constant effort in revising/rewriting parts that are unclear or misleading. That is why we greatly appreciate any comments and suggestions on improving this aspect of our product. We will revise the entire firebird part and update it with the latest information needed.  Please find your Telerik points updated.

All the best,
Petar
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
harry
Top achievements
Rank 1
answered on 19 Jan 2010, 04:03 PM
if you're using embedded server without a running firebird server on your machine you'll have to copy the embedded firebird files to the directory of your visual studio devenv.exe file (i.e.: ..\Microsoft Visual Studio 9.0\Common7\IDE)

regards harry
Tags
Databases and Data Types
Asked by
JK
Top achievements
Rank 1
Answers by
Alexander
Telerik team
JK
Top achievements
Rank 1
PetarP
Telerik team
harry
Top achievements
Rank 1
Share this question
or