RuntimeBinderException: Cannot convert type 'string' to 'float'

84 views
Skip to first unread message

Van T

unread,
May 2, 2012, 9:35:20 AM5/2/12
to rav...@googlegroups.com
I have an Multi Map Index that returns minimum and maximum values of float values.
The failed unit test and error message from RavenDB Studio is attached. RavenDB version used: 888, via NuGet.

After looking around the group, I found that it's likely because of float support of Json.NET: Change the data type to double fixes the problem.
My question is whether this is considered a bug and will be fixed in future, or is it an unsupported case?

Regards,
Van
Error.png
IndexTest.cs

Oren Eini (Ayende Rahien)

unread,
May 3, 2012, 5:15:10 AM5/3/12
to rav...@googlegroups.com
The issue is that for some reason, JSON.Net is serializing the floats as strings.
If you change the floats to double, it would work
Reply all
Reply to author
Forward
0 new messages