[CSHARP-2206] Watch method fails when c# driver upgraded to 2.5 from 2.4 Created: 07/Mar/18 Updated: 27/Oct/23 Resolved: 07/Mar/18 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | API, Operations |
| Affects Version/s: | 2.5 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Puneet Sharma | Assignee: | Robert Stam |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | driver, question | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 10, Core i3 with 8GB RAM using Visual studio 2015 professional. |
||
| Description |
|
Just after upgrading the c# driver to 2.5, my logic where I am using watch method to check for any updates on collection started failing with an error message.
below is the code: and last line is where code breaks. ; In documentation, I do see the very first point says
but here I don't see anything that suggests any changes. Can you suggest what's wrong here? |
| Comments |
| Comment by Robert Stam [ 07/Mar/18 ] | |
|
OK. Thanks for letting me know that. | |
| Comment by Puneet Sharma [ 07/Mar/18 ] | |
|
It seems like it was my mistake, my API was configured with a server which was having MongoDB 3.6 and my client-side application was configured with a server having 3.4 MongoDB. Hence the issue. | |
| Comment by Robert Stam [ 07/Mar/18 ] | |
|
The error message:
is being returned from the server. The first two things you should look into are: 1. Is the server version 3.6? (older versions don't support change streams) |