calling fromconnectionString throws null DNSClient exception -

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.9.0
    • Component/s: Connectivity
    • None
    • Environment:
      visual stuido 2019, csharp, xamarin forms - azure cosmos DB
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      it seems something has changed since version 2.9.0 that throws the exception whenever you try to initiate the DB from the connection string. previous version all works fine.

       

      at DnsClient.NameServer.ResolveNameServers (System.Boolean skipIPv6SiteLocal, System.Boolean fallbackToGooglePublicDns) [0x0005e] in <93b57b4b99c64a96a2c065ea9ae1fc1f>:0
      at DnsClient.LookupClient..ctor () [0x00000] in <93b57b4b99c64a96a2c065ea9ae1fc1f>:0
      at MongoDB.Driver.Core.Misc.DnsClientWrapper..ctor () [0x00006] in <69a19ce1f0ff410ca77cc0cfdf31b04c>:0
      at MongoDB.Driver.Core.Clusters.DnsMonitorFactory..ctor (MongoDB.Driver.Core.Events.IEventSubscriber eventSubscriber, MongoDB.Driver.Core.Misc.IDnsResolver dnsResolver) [0x00017] in <69a19ce1f0ff410ca77cc0cfdf31b04c>:0
      at MongoDB.Driver.Core.Clusters.MultiServerCluster..ctor (MongoDB.Driver.Core.Configuration.ClusterSettings settings, MongoDB.Driver.Core.Servers.IClusterableServerFactory serverFactory, MongoDB.Driver.Core.Events.IEventSubscriber eventSubscriber, MongoDB.Driver.Core.Clusters.IDnsMonitorFactory dnsMonitorFactory) [0x0005d] in <69a19ce1f0ff410ca77cc0cfdf31b04c>:0
      at MongoDB.Driver.Core.Clusters.ClusterFactory.CreateMultiServerCluster (MongoDB.Driver.Core.Configuration.ClusterSettings settings) [0x00000] in <69a19ce1f0ff410ca77cc0cfdf31b04c>:0
      at MongoDB.Driver.Core.Clusters.ClusterFactory.CreateCluster () [0x000bf] in <69a19ce1f0ff410ca77cc0cfdf31b04c>:0
      at MongoDB.Driver.Core.Configuration.ClusterBuilder.BuildCluster () [0x00006] in <69a19ce1f0ff410ca77cc0cfdf31b04c>:0
      at MongoDB.Driver.ClusterRegistry.CreateCluster (MongoDB.Driver.ClusterKey clusterKey) [0x000be] in <3b162f88ef324ea39a81e2d6bf362821>:0
      at MongoDB.Driver.ClusterRegistry.GetOrCreateCluster (MongoDB.Driver.ClusterKey clusterKey) [0x00021] in <3b162f88ef324ea39a81e2d6bf362821>:0
      at MongoDB.Driver.MongoClient..ctor (MongoDB.Driver.MongoClientSettings settings) [0x0002d] in <3b162f88ef324ea39a81e2d6bf362821>:0
      at SensoDrive.Client.Infrastructure.Database.CosmoMongoDb.InitializeCosmoDBAsync () [0x0002f]

            Assignee:
            Dmitry Lukyanov (Inactive)
            Reporter:
            Sasan Pasha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: