[CSHARP-1596] when using Parallel forEach an argument exception is thrown Created: 07/Mar/16  Updated: 05/Apr/19  Resolved: 05/Apr/16

Status: Closed
Project: C# Driver
Component/s: Linq
Affects Version/s: 2.2.3
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Greg Assignee: Unassigned
Resolution: Done Votes: 0
Labels: question
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

vs 2015, .net 4.5


Attachments: PNG File bDPXb.png    

 Description   

when iterating thru collection using parrale forEach function an exception is thrown:
SYSTEM ARGUMENT EXCEPTION - please see attached screen shot,



 Comments   
Comment by Craig Wilson [ 07/Mar/16 ]

Thanks for the report Greg. We'll certainly attempt to reproduce this. I have a question. The exception appears to be coming out of EntityFramework. This is a little odd. It would help tremendously if you could provide a solution or project demonstrating the problem. We don't have a reference to EntityFramework, and, internally, our linq implementation doesn't generate parameters with the name used in the stack trace.

One initial thought I have is about where some of your parameters are coming from, for instance, the officesIds or category.Id parameter.

Craig

Comment by Greg [ 07/Mar/16 ]

more can be find here:
http://stackoverflow.com/revisions/35851725/4

Generated at Wed Feb 07 21:40:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.