Take the 2-minute tour ×

I am recently facing this cryptic error from MongoDB error which I did not see before. I have this piece of code which is basically a test case and It does a find & modify on some MongoDB document and the test has started throwing following error:

MongoDB.Driver.MongoCommandException: Command 'findAndModify' failed: exception: assertion src\mongo\db\commands\find_and_modify.cpp:184 (response: { "errmsg" : "exception: assertion src\mongo\db\commands\find_and_modify.cpp:184", "code" : 0, "ok" : 0.0 })

I have tried to find some help online but none of the blogs or forums seems to be helping and discussing this issue properly.

Any help?

share|improve this question
Could you provide the code that's calling findAndModify? Also, you say you weren't seeing the error before--what changed? Maybe a driver or server upgrade? Maybe data set? –  jared Jan 18 '13 at 2:00
Helpful error! Is there anything in the logs that gives you more information? –  gregor Jan 21 '13 at 15:06
Hi guys, I am sorry for the late reply but it turned out that the error was caused by a mismatch in Mongo C# driver version and the version of MOngoDb installed on my machine. The error is solved by simply updating my MongoDB version on the machine. Thank you so much for your inputs...... –  Californicated Jan 25 '13 at 22:52

Your Answer



Browse other questions tagged or ask your own question.