-
Notifications
You must be signed in to change notification settings - Fork 61
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
Value class Mongo.Migration.Documents.DocumentVersion cannot be deserialized. #45
Comments
This happened because of BackgroundService that tried to fetch db on start. After I put delay it works. But I think there should be a note in readme at least. |
@festelo I have the same issue here, could you explain what you mean by "delay"? |
Still looking for help with this issue. Found some interesting information, so the c# mongodb driver is not able to deserialize struct. DocumentVersion is a struct here. |
Sorry for late response. I will have a look at it. Thank you for the feedback. Cheers, Sean |
Please fix this asp. |
This issue is still happening, on our end we had a background service accessing Mongo too early. We've found that awaiting on |
Any movement on this issue? We are also getting it intermittently on .NET Core 6 application |
Are you able to elaborate on how you achieved this? |
We're doing something like this:
|
@SRoddis any ideas what is causing this issue? Happy to contribute with a fix if pointed in the right direction. |
Thanks so much. The problem we've got is that we do not have direct control of the hosted service as it's a MassTransit service which coordinates the processing of messages off of queues. There is no real way for us to tie into Mass Transit's lifecycle to delay the start up. |
We had this issue when we were not calling |
The text was updated successfully, but these errors were encountered: