Closed nihiluis closed 7 years ago
Hi @nihiluis ,
The exception message is a bit cryptic. I suspect Mono is expecting to see some kind of Object.field
value somewhere and it's not finding it during runtime.
Not totally sure how to resolve this, but you might want to try:
RethinkDb.Driver.zip
, extract, and you'll find RethinkDb.Driver\mono_build\
. Use all the files in mono_build
instead of the NuGet package.Make doubly sure to remove all traces of the driver from NuGet package (obj/tmp compiler artifacts). The mono_build\*
DLLs were built specifically with the mono compiler. The NuGet package DLLs were built from MSBuild / VS2015 compiler, so there might be some edge case incompatibility you've run into with Microsoft's compiler.
Let me know how that goes.
Thanks, Brian
:zzz: :zzz: "You don't want to... Wake, push through"
Thanks for your help, it works now.
Upgrading Mono was not successful and replacing the RethinkDb was not enough. However replacing the 3 other DLLs (Logging and JSON) worked.
Agh, Good, glad you got it working. By any chance, did your NuGet download have the Newtonsoft v9 dependency or v10 dependency? Looks like Newtonsoft v10 was released today that could have possibly been the source of your issue.
No. The actual Newtonsoft dependency is from 06/22/15 (it's provided by the software im coding for, not sure why it's that old). It might just be be the opposite reason though (some old Newtonsoft version).
I'm using Mono 4.6.1 on Arch Linux with RethinkDb.Driver.dll 2.3.15 from NuGet. When inserting a POCO a BadImageFormatException is thrown. Not sure what it means tbh.
Here is my code
and my poco
Before submitting your issue, please review the following checklist: