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

Socket exceptions connecting to MongoDB

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.9.2
    • Component/s: Connectivity
    • Labels:
    • Environment:
      Windows Web Server 2008 R2 (SP1)

      We have implemented a MongoDB based output cache provider for a hybrid ASP.NET web forms / MVC application.

      The basic provider was modelled on this https://msdn.microsoft.com/en-us/gg650661.aspx

      We modified the code to use the official C# provider (see attached)

      Since deployment, we have seen a number of these exceptions:

      System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond <IP ADDRESS>>:27017

      There are no obvious networking issues in our live environment. The MongoDB server is also currently the ASP.NET session state server.

      Any pointers as to how to debug / configuration to check?

            Assignee:
            craig.wilson@mongodb.com Craig Wilson
            Reporter:
            Embo1 Matthew Evans [X]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: