Harry
Harry

Reputation: 75

ASP .Net Web API And RavenDB Compatibility

I use RavenDB Build 1.0.960 and ASP .Net Web API in separated assemblies. My application can not serialize and deserialize json in run-time.

Is any solution to solve this?

Upvotes: 1

Views: 485

Answers (1)

George
George

Reputation: 31

A common complaint that we hear about RavenDB 1.0 is that it depends on Newtonsoft.Json 4.0.8, while many libraries are already using 4.5.7. We already resolved the problem once and for all in the RavenDB 1.2 branch, but that is a few months from going live yet.

Therefor, we create a new nuget package: http://nuget.org/packages/RavenDB.Client/1.0.971

This nuget package is the exact same as 960, except that we compiled it against Newtonsoft.Json 4.5.7. Note that this is only supported for the client mode, if you want to run RavenDB Server or RavenDB Embedded, it is still going to require Newtonsoft.Json 4.0.8 in the 1.0 version.

The main idea is that you can get to run against RavenDB Server using Newtonsoft.Json 4.5.7 on the client side, which is the most common scenario for RavenDB.

Upvotes: 3

Related Questions