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

Socket exceptions connecting to MongoDB

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.9.2
    • Connectivity
    • Windows Web Server 2008 R2 (SP1)

    Description

      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?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: