[CSHARP-1244] Unhandled exception in IQueryable.ToList() Created: 20/Apr/15 Updated: 21/Mar/17 Resolved: 21/Mar/17 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq |
| Affects Version/s: | 1.10 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Eva | Assignee: | Robert Stam |
| Resolution: | Cannot Reproduce | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows Server 2012 Standard, .NET 4.0 |
||
| Description |
|
In our application, we are using the following code to retrieve some information from MongoDB (the relevant bits):
The above code crashes the whole application unpredictably when processing the result of the query in GetListOfValidSystemNotification (approx 1/week) with the following exception:
Please note that this output is from Windows Event VIewer. We have exception handling in place, but because this is an application crash, it catches nothing. The issue is not, as far as we have managed to determine, reproducible at will. |
| Comments |
| Comment by Robert Stam [ 07/Mar/17 ] | ||||||||||||||||||||||||||||||||
|
I know this was reported some time ago... I tried to reproduce this today using this code but no exception was thrown:
Also, 1.10 is a very old version of the driver that is no longer actively being supported. The 2.x version of the driver has an entirely new LINQ implementation that converts LINQ queries to aggregation framework pipelines instead of to find queries. This allows more of LINQ to be supported. I'm changing the status of this ticket to "Debugging with Submitter" but will soon change it to "Works as Designed". | ||||||||||||||||||||||||||||||||
| Comment by Joel Sanderson [ 30/Jun/15 ] | ||||||||||||||||||||||||||||||||
|
We are experiencing the same issue. We currently are using version 1.10.0.62 (file version of MongoDB.Driver.dll) of the C# driver. However, ours only started doing this in the past few days. The same version of the driver had been working very well since Feb 2015. However, we've been moving toward using IMongoQuery instead of lambda expressions, so to workaround this, I'm going to try converting the queries to that. |