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

Server solution on Windows via IIS application - Freeze

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.7.0
    • Component/s: Connectivity
    • Labels:
    • Environment:
      VS solution which run IIS application. code is C#.

      on my code I have static connectivity to MongoDB.

      use Win server 2012 to run the IIS process. (.Net 4.7.2)

       

      The connection to client via  new MongoClient(settings) Stuck my process.

      issue solved after reboot server only.

      After reboot no problem to initiate the connection again.

       

      but since we create server via our Devops, I look for a solution without reboot any new server we create.

      MongoDB.Driver; version: 2.7.0.0.

       

      code Example:

      public W6CMMongoProducer()

      { var settings = MongoClientSettings.FromUrl(new MongoUrl(m_strUrl)); settings.ConnectTimeout = new TimeSpan(0, 0, 30); *MongoClient client = new MongoClient(settings);* }

            Assignee:
            Unassigned Unassigned
            Reporter:
            eran.rotbart@clicksoftware.com Eran Rotbart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: