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

ObjectDisposedException when performing database operations

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.2
    • Component/s: Error Handling
    • None
    • Environment:
      Windows 10 64-bit, .NET Framework 4.6

      System.ObjectDisposedException: Cannot access a disposed object.
      System.Threading.TimerQueueTimer.Change(UInt32 dueTime, UInt32 period)
      System.Threading.Timer.Change(TimeSpan dueTime, TimeSpan period)
      MongoDB.Driver.Core.Servers.HeartbeatDelay.RequestHeartbeat()
      MongoDB.Driver.Core.Servers.ServerMonitor.RequestHeartbeat()
      MongoDB.Driver.Core.Servers.Server.HandleChannelException(IConnection connection, Exception ex)
      MongoDB.Driver.Core.Servers.Server.ServerChannel.ExecuteProtocol[TResult](IWireProtocol`1 protocol, CancellationToken cancellationToken)
      MongoDB.Driver.Core.Servers.Server.ServerChannel.Command[TResult](DatabaseNamespace databaseNamespace, BsonDocument command, IElementNameValidator commandValidator, Func`1 responseHandling, Boolean slaveOk, IBsonSerializer`1 resultSerializer, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken)
      MongoDB.Driver.Core.Operations.CommandOperationBase`1.ExecuteProtocol(IChannelHandle channel, ServerDescription serverDescription, ReadPreference readPreference, CancellationToken cancellationToken)
      MongoDB.Driver.Core.Operations.CommandOperationBase`1.ExecuteProtocol(IChannelSource channelSource, ReadPreference readPreference, CancellationToken cancellationToken)
      MongoDB.Driver.Core.Operations.WriteCommandOperation`1.Execute(IWriteBinding binding, CancellationToken cancellationToken)
      MongoDB.Driver.Core.Operations.CreateCollectionOperation.Execute(IWriteBinding binding, CancellationToken cancellationToken)
      MongoDB.Driver.OperationExecutor.ExecuteWriteOperation[TResult](IWriteBinding binding, IWriteOperation`1 operation, CancellationToken cancellationToken)
      MongoDB.Driver.MongoDatabaseImpl.ExecuteWriteOperation[T](IWriteOperation`1 operation, CancellationToken cancellationToken)
      MongoDB.Driver.MongoDatabaseImpl.CreateCollectionHelper[TDocument](String name, CreateCollectionOptions`1 options, CancellationToken cancellationToken)
      MongoDB.Driver.MongoDatabaseImpl.CreateCollection(String name, CreateCollectionOptions options, CancellationToken cancellationToken)
      

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            onyxmaster Aristarkh Zagorodnikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: