The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

EntitySpaces Assemblies and Connector Versions

Last post 10-30-2007, 12:19 AM by David.Parsons. 2 replies.
Sort Posts: Previous Next
  •  03-27-2007, 12:20 PM 1441

    EntitySpaces Assemblies and Connector Versions

    By default .NET looks for the exact assembly version that we reference in the provider. But, we do not do anything that locks you into that. Try adding a runtime section to your application's config file that redirects the assembly version. For example, the EntitySpaces Beta 2007.v0 MySQL provider references Connector/NET 5.0.3. If you add this after </configSections>, then you can use Connector/NET 5.0.5 downloaded from the MySQL site.

    Code:
    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <!-- Redirect MySQL Connector -->
    <assemblyIdentity name="MySql.Data"
    publicKeyToken="c5687fc88969c44d"
    culture="neutral" />
    <bindingRedirect oldVersion="5.0.0.0-5.0.4.0"
    newVersion="5.0.5.0"/>
    </dependentAssembly>
    </assemblyBinding>
    </runtime>
  •  06-12-2007, 5:19 PM 3182 in reply to 1441

    Re: EntitySpaces Assemblies and Connector Versions

    Thx to bigjoe714 for this post on getting the technique to work for ASP.NET config files by removing the "xmlns=..." from <configuration>.

    http://community.entityspaces.net/forums/thread/3175.aspx


    David Neal Parsons
    www.entityspaces.net
  •  10-30-2007, 12:19 AM 6168 in reply to 3182

    Re: EntitySpaces Assemblies and Connector Versions

    Here is an example of assembly redirection using VistaDB:

    Code:
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <!-- Redirect VistaDB Connector -->
                <assemblyIdentity name="VistaDB.NET20"
                                  publicKeyToken="dfc935afe2125461"
                                  culture="neutral" />
                <bindingRedirect oldVersion="3.20.1.0-3.20.1.29"
                                 newVersion="3.20.1.30"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>

    David Neal Parsons
    www.entityspaces.net
View as RSS news feed in XML