HomeActive Query Builder - HowTos and TroubleshootingHow-tos for WinForms .NET EditionHow to configure assembly binding redirection?

2.1. How to configure assembly binding redirection?

> I want to connect to VistaDB.
> Do I have to use VistaDB-Version 3.2 Build 38?
> I would like to use a new version!

To use any new version of the VistaDB.NET20 assembly you need to override the version binding using the following 'app.config' file (add it into your project):

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="VistaDB.NET20"
          publicKeyToken="dfc935afe2125461"
          culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="3.3.1.52" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

Don't forget to change the 'newVersion' attribute to the required version of the VistaDB.NET20 assembly.

More information can be found here.

This page was: Helpful | Not Helpful