Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoSession - Cannot access a disposed object. #7

Open
BobLd opened this issue Dec 8, 2021 · 1 comment
Open

MongoSession - Cannot access a disposed object. #7

BobLd opened this issue Dec 8, 2021 · 1 comment

Comments

@BobLd
Copy link
Owner

BobLd commented Dec 8, 2021

Try a mongo session that fails, and try again

System.Exception
  HResult=0x80131500
  Message=MongoSession.LoadRecentData
  Source=Panoptes.Model.MongoDB
  StackTrace:
   at Panoptes.Model.MongoDB.Sessions.MongoSession.<LoadRecentDataAsync>d__13.MoveNext() in C:\...\Panoptes.Model.MongoDB\Sessions\MongoSession.cs:line 188
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
   at Panoptes.SessionService.<OpenSessionAsync>d__25.MoveNext() in C:\...\Panoptes\SessionService.cs:line 367

  This exception was originally thrown at this call stack:
    MongoDB.Driver.Core.Clusters.Cluster.ThrowIfDisposed()
    MongoDB.Driver.Core.Clusters.Cluster.ThrowIfDisposedOrNotOpen()
    MongoDB.Driver.Core.Clusters.Cluster.SelectServerAsync(MongoDB.Driver.Core.Clusters.ServerSelectors.IServerSelector, System.Threading.CancellationToken)
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
    System.Runtime.CompilerServices.ConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiter.GetResult()
    MongoDB.Driver.MongoClient.AreSessionsSupportedAfterServerSelectionAsync(System.Threading.CancellationToken)
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
    ...
    [Call Stack Truncated]

Inner Exception 1:
ObjectDisposedException: Cannot access a disposed object.
ObjectDisposed_ObjectName_Name
@tjitra
Copy link

tjitra commented Oct 21, 2023

hello can any one tell me what is mongodb used for, is any sample mongo db data? or any tutorial can i read? thankyou

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants