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

Latest DnsClient breaks API compatibility

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 2.8.0
    • 2.7.2
    • Connectivity
    • None
    • DnsClient nuget package version 1.2.0

    Description

      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)
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: