Firebird: where to copy ado.net client?

6 posts, 0 answers
  1. JK
    JK avatar
    5 posts
    Member since:
    Nov 2009

    Posted 04 Nov 2009 Link to this post

    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
  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 05 Nov 2009 Link to this post

    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.
  3. DevCraft banner
  4. JK
    JK avatar
    5 posts
    Member since:
    Nov 2009

    Posted 08 Nov 2009 Link to this post

    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
  5. JK
    JK avatar
    5 posts
    Member since:
    Nov 2009

    Posted 08 Nov 2009 Link to this post

    And by the way, fire your build engineer because there is no any "Uninstall" link or button. Bad manners.
    Cheers
  6. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 11 Nov 2009 Link to this post

    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.
  7. harry
    harry avatar
    2 posts
    Member since:
    Sep 2008

    Posted 19 Jan 2010 Link to this post

    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
Back to Top
DevCraft banner