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

MongoClient misinterprets connection settings

    • Type: Icon: Task Task
    • Resolution: Cannot Reproduce
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: 2.0
    • Component/s: API, Connectivity
    • Environment:
      Client: Linux Mint 17.1 x86_64
      Server: CentOS 7 x86_64
      Mongod: db version v2.6.9
      2015-04-12T07:34:10.623-0400 git version: df313bc75aa94d192330cb92756fc486ea604e64
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The default MongoClient Constructor tries to connect to Unspecified/localhost:27017 instead of localhost:27017. Even if the constructor gets either MongoClientSettings or a connection string it does that strange thing of adding Unspecified/ as a prefix to the host name.

        1. Code_v2.cs
          0.5 kB
        2. Code.cs
          0.4 kB
        3. Exception
          28 kB
        4. Exception_v2
          28 kB

            Assignee:
            Unassigned Unassigned
            Reporter:
            m3t4lukas Lukas Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: