Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1572

Assembly Binding from 1.9.2.235 to 2.2.3.3

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • 2.2.3
    • BSON
    • Major Change

    Description

      Hey there.
      We've recently updated mongo from 1.9.X to 2.2.X and we have runtime binding issues.

      Assemblies build with 1.9.X wont work with 2.2.X redirection (looks like the old one is strongly signed and new its not).

      The error is usual:
      Could not load file or assembly 'MongoDB.Bson, Version=1.9.2.235, Culture=neutral, PublicKeyToken=f686731cfb9cc103' or one of its dependencies.
      The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

      Our web.config binding:
      <dependentAssembly>
      <assemblyIdentity name="MongoDB.Driver" publicKeyToken="f686731cfb9cc103" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-2.2.3.3" newVersion="2.2.3.3" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="MongoDB.Bson" publicKeyToken="f686731cfb9cc103" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-2.2.3.3" newVersion="2.2.3.3" />
      </dependentAssembly>

      Any helper appreciated.
      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            betonWorks Aleksander [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: