[CSHARP-1468] Unable to determine the serialization information for c => Convert(c).Id Created: 02/Nov/15 Updated: 04/Apr/16 Resolved: 04/Nov/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Serialization |
| Affects Version/s: | 2.1 |
| Fix Version/s: | 2.1.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Frédérik Charest | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 0 |
| Labels: | regression | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Since we went from version 2.0.1 to 2.1.0 we get this error: Unable to determine the serialization information for c => Convert(c).Id Here's the exception:
Here's the object structure:
Here are the conventions:
|
| Comments |
| Comment by Sandra Greenhalgh [ 12/Nov/15 ] |
|
Awesome, thanks |
| Comment by Craig Wilson [ 12/Nov/15 ] |
|
Hi saan800, we released 2.1.1 yesterday. |
| Comment by Sandra Greenhalgh [ 10/Nov/15 ] |
|
I'm also getting this issue. Is there an ETA for a new nuget package for version 2.1.1? Or a prerelease pacakge? |
| Comment by Frédérik Charest [ 04/Nov/15 ] |
|
Alright, this is also working on my end! |
| Comment by Githook User [ 04/Nov/15 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Donatas Tutinas [ 04/Nov/15 ] |
|
We've been also having this issue in our asp.net 5 environment. Bug only started to appear after upgrading to asp beta8 version for some reason. Anyway using the new Craig's build, we do not have this issue anymore, so looks as this is fixed |
| Comment by Craig Wilson [ 03/Nov/15 ] |
|
Hi Frederik, I've pushed a fix to our 2.1 branch. One of the other developers here wasn't able to reproduce the issue at all, while I was. Would you mind ensuring that this has fixed your issue? We have a build nuget feed at myget that has this build in it. Here is a direct link to the nuget package: https://www.myget.org/F/mongodb/api/v2/package/MongoDB.Driver-Build/2.1.1-build-0003. Thanks, |
| Comment by Githook User [ 03/Nov/15 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Craig Wilson [ 02/Nov/15 ] |
|
Frederik, Thanks for the report. I can reproduce this. It has to do with the generic type constraint in your base repository. I'll start working on a fix. Craig |
| Comment by Frédérik Charest [ 02/Nov/15 ] |
|
Mmm, I wanted to format the code in monospace, but it didn't work and now I can't edit it :/ |