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

Can't resolve localhost as part of the connection string

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.3.0-beta1
    • Component/s: Configuration
    • None
    • Environment:
      dotnet core on OSX

      The question was raised in Stackoverflow: http://stackoverflow.com/questions/38772459/connection-to-mongo-db-using-dotnetcore/38772489?noredirect=1#comment65244203_38772489 and there is a workwound for it which I found an added to the thread.

      Essentially the MongoClient throws an exception when trying to connect using localhost as part of its connection string. If you however change the name for the ip address it works. So I changed it from localhost to 127.0.0.1 and I could connect successfully.

            Assignee:
            Unassigned Unassigned
            Reporter:
            CarlosTorrecillas Carlos Torrecillas [X]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: