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

An existing connection was forcibly closed by the remote host

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.7
    • Component/s: None
    • None
    • Environment:
      Client: Webservice in Net Framework 4.0 over Windows 2003 Enterprixe SP2 x64. Driver 1.7
      Server: Mongo 2.2.3 over Windows 2012 Datacenter x64

      We receive a burst of message on driver with the following message (we reviewed the network connection between server and client and it works fine):

      Event Type: Error
      Event Source: FligBookingEngine
      Event Category: None
      Event ID: 0
      Date: 11/02/2013
      Time: 9:17:46
      User: N/A
      Computer: LOG-20
      Description:
      2013-02-11 08:17:46.6180|"Critical"|"STATISTICS"|"Exception in Statistics MongoDB provider SaveToDatabase. LoB: 'Flights'; App: 'BookingEngine'; Collection: 'Statistics_FlightsBookingEngine'; Statement: 'sqlCommand'.Unable to connect to a member of the replica set matching the read preference Primary: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host... at MongoDB.Driver.Internal.MultipleInstanceMongoServerProxy.ThrowConnectionException(ReadPreference readPreference) at MongoDB.Driver.Internal.MultipleInstanceMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference) at MongoDB.Driver.Internal.MultipleInstanceMongoServerProxy.ChooseServerInstance(ReadPreference readPreference) at MongoDB.Driver.MongoServer.AcquireConnection(MongoDatabase database, ReadPreference readPreference) at MongoDB.Driver.MongoCollection.InsertBatch(Type nominalType, IEnumerable documents, MongoInsertOptions options) at MongoDB.Driver.MongoCollection.Insert(Type nominalType, Object document, MongoInsertOptions options) at Toolfactory.Database.MongoDB.DB.Insert[T](String connectionString, String database, String collectionName, T item) at Toolfactory.Audit.Statistics.MongoDBProvider`1.saveToDatabase(String collectionName, TStatistics statisticsData)"|"00000000-0000-0000-0000-000000000000"|"[NO FLOW]"|"[NO PROCESS POINT]"||

      For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

            Assignee:
            Unassigned Unassigned
            Reporter:
            david.verdejo@logitravel.com David Verdejo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: