You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb...@googlegroups.com
Using version 1.6 The following code results in a FormatException with message "Input string was not in a correct format"
var dataSet = from x in srv[db][coll].AsQueryable<BsonDocument>() where x["CustomerId"] == CustomerId //CustomerId is an ObjectId orderby x["_id"] select x;
Why does the above try to convert "CustomerId" into an int on line 233 of BsonSerializationInfo.cs?
craiggwilson
unread,
Sep 13, 2012, 9:27:06 PM9/13/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb...@googlegroups.com
Using a BsonDocument with linq is not supported at this time. If you'd like this feature, please submit a feature request here:
https://jira.mongodb.org/browse/CSHARP.
craiggwilson
unread,
Sep 13, 2012, 9:29:04 PM9/13/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb...@googlegroups.com
I might be wrong on that. Could you post the complete stack trace and possibly a sample program that would let us reproduce the issue?
Robert Stam
unread,
Sep 13, 2012, 10:25:24 PM9/13/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb...@googlegroups.com
I can confirm that the C# driver doesn't support LINQ queries against BsonDocument.
LINQ queries require a typed object to query against (at least as currently implemented).
There should definitely be a better error message though!
t1235...@gmail.com
unread,
Sep 6, 2013, 8:22:08 AM9/6/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message