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

Latest DnsClient breaks API compatibility

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0
    • Affects Version/s: 2.7.2
    • Component/s: Connectivity
    • None
    • Environment:
      DnsClient nuget package version 1.2.0

      Version 1.2.0 of the DnsClient nuget package changed the LookupClient.QueryAsync() signature which breaks MongoDB.Driver.Core.Configuration.ConnectionString.ResolveAsync.

      Also version 1.2.0 results in a MissingMethodException at runtime:

      System.MissingMethodException was unhandled
       HResult=-2146233069
       Message=Method not found: 'DnsClient.IDnsQueryResponse DnsClient.LookupClient.Query(System.String, DnsClient.QueryType)'.
       Source=MongoDB.Driver.Core
       StackTrace:
       at MongoDB.Driver.Core.Configuration.ConnectionString.Resolve()
       at MongoDB.Driver.MongoUrl.Resolve()
       at MongoDB.Driver.MongoClientSettings.FromUrl(MongoUrl url)
       at MongoDB.Driver.MongoClient..ctor(MongoUrl url)
      

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            john.murphy@mongodb.com John Murphy
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: