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

Can't resolve localhost as part of the connection string

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.3.0-beta1
    • Configuration
    • None
    • dotnet core on OSX

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: