Installing Raven via Visual studio

307 views
Skip to first unread message

Idan

unread,
May 17, 2012, 1:57:02 AM5/17/12
to rav...@googlegroups.com
I try to install RavenDB via visual studio and get

PM> Install-Package RavenDB -Version 1.0.888
Attempting to resolve dependency 'NLog (= 2.0.0.2000)'.
Attempting to resolve dependency 'Newtonsoft.Json (= 4.0.8)'.
Successfully installed 'NLog 2.0.0.2000'.
Successfully installed 'Newtonsoft.Json 4.0.8'.
You are downloading RavenDB from Hibernating Rhinos, the license agreement to which is available at http://www.ravendb.net/licensing. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'RavenDB 1.0.888'.
Install failed. Rolling back...
Install-Package : Already referencing a newer version of 'Newtonsoft.Json'.
At line:1 char:16
+ Install-Package <<<<  RavenDB -Version 1.0.888
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
PM> 


I really don't know how to get started working with the DB, hheelllppp!!

Fitzchak Yitzchaki

unread,
May 17, 2012, 2:02:55 AM5/17/12
to rav...@googlegroups.com
You have two options here:

1. Remove the reference to Newtonsoft.Json dll, or any package that may use it. Re-install RavenDB.Client package.
2. You can use an pre-release package, using the -Pre parameter, which doesn't conflict with Newtonsoft.Json dll that you may have.

Idan

unread,
May 17, 2012, 2:20:57 AM5/17/12
to rav...@googlegroups.com
not working

PM> Install-Package RavenDB -Pre
Attempting to resolve dependency 'NLog (= 2.0.0.2000)'.
Attempting to resolve dependency 'Newtonsoft.Json (= 4.0.8)'.
Successfully installed 'NLog 2.0.0.2000'.
Successfully installed 'Newtonsoft.Json 4.0.8'.
You are downloading RavenDB from Hibernating Rhinos, the license agreement to which is available at http://www.ravendb.net/licensing. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'RavenDB 1.0.910-Unstable'.
Install failed. Rolling back...
Install-Package : Already referencing a newer version of 'Newtonsoft.Json'.
At line:1 char:16
+ Install-Package <<<<  RavenDB -Pre

Fitzchak Yitzchaki

unread,
May 17, 2012, 2:26:16 AM5/17/12
to rav...@googlegroups.com
Use RavenDB.Client packge:
Install-Package RavenDB.Client -Pre 

Idan

unread,
May 17, 2012, 7:06:55 AM5/17/12
to rav...@googlegroups.com
I installed the client package, but how can I install the server, how to manage it, how to add data without doing it via code, any UI?

Itamar Syn-Hershko

unread,
May 17, 2012, 7:09:00 AM5/17/12
to rav...@googlegroups.com

Damian Hickey

unread,
May 17, 2012, 7:14:48 AM5/17/12
to rav...@googlegroups.com

Radenko Zec

unread,
Sep 7, 2012, 5:39:12 AM9/7/12
to rav...@googlegroups.com
Hi guys.
I am still receiving same issue with latest stable version of RavenDb Client when installing with newer version of NewtonJSON.
Can you please merge your dependent DLL-s into Raven.Client.LightWeight dll so we can work normally ?

http://blogs.clariusconsulting.net/kzu/how-to-merge-your-referenced-assemblies-into-the-output-assembly-for-improved-usability/
http://www.red-gate.com/products/dotnet-development/smartassembly/features/#merging-dll


Thanks

Chris Marisic

unread,
Sep 7, 2012, 8:58:37 AM9/7/12
to rav...@googlegroups.com
RavenDB.Client 1.0.972 uses  Newtonsoft.Json (= 4.5.7)
RavenDB.Client 1.0.960 uses  Newtonsoft.Json (= 4.0.8)

RavenDB.Client -pre internalizes Newtonsoft.Json

RavenDB.Database 1.0.960  uses  Newtonsoft.Json (= 4.0.8) period and there is no other option. Only the client can use 4.5.7 without breaking.

RavenDB.Database -pre internalizes Newtonsoft.Json

Radenko Zec

unread,
Oct 9, 2012, 3:29:22 AM10/9/12
to rav...@googlegroups.com
Hi There.
Some of us planning to use RavenDb 1.0.960 in production.
We don't want to install unstable build 1.2 to solve this issue.
Can you please fix it in this version of RavenDb ? You have a no idea what problem this issue is cause to us....

Chris Marisic

unread,
Oct 9, 2012, 9:55:49 AM10/9/12
to rav...@googlegroups.com

Radenko Zec

unread,
Oct 9, 2012, 11:32:28 AM10/9/12
to rav...@googlegroups.com
Not agree with you Chris.
You can simple merge your external dependencies(dll-s) like JSON.NET into single client dll (RavenDb.Client) using tools like
SmartAssembly or ILMerge.
Instead you are forcing us to use Unstable builds of RavenDb...

Chris Marisic

unread,
Oct 9, 2012, 1:29:35 PM10/9/12
to rav...@googlegroups.com
You are grossly oversimplifying things. Yes you can ILMerge, however Raven actually uses the publicly exposed type information of JSON.NET to facilitate how raven works. There are times when you reach right into json.net through raven.

So no, Oren cannot just ilmerge json.net and have everything work. He needs to build an entire typing/configuration layer on top this to act as a mediator between external code usage and internalized json.net usage. This is a non trivial task, this was one of the many things they've done in 1.2

All of these issues would have been avoided to start with IF james netwonking didn't continuously release breaking changes and instead built software that was (binary exectuable) backwards compatible.

Oren Eini (Ayende Rahien)

unread,
Oct 9, 2012, 1:32:18 PM10/9/12
to rav...@googlegroups.com
At any rate, the issue is pretty much settled. We aren't going to have another 1.0 release ,and we are going to go full steam ahead at 1.2 to make sure it is out ASAP.

Radenko Zec

unread,
Oct 9, 2012, 2:10:57 PM10/9/12
to rav...@googlegroups.com
That is your point of view as consumer of JSON.NET.
From my point of view (I am consumer of your client library) you are responsible to internalize all external DLLs in your client DLL.
I don't want to go into discussion is this trivial task or not (I have done it many times and I know exactly how much hard is to create mediator for external dll...)
I just want to point out (as you have also pointed to James Netwon King bad backward compatibility) that you have delivered v1 client with a serious issue and you don't plan to fix it until next release which is also unprofessional.
I am also looking forward to see release 1.2 ASAP.
Thanks

Oren Eini (Ayende Rahien)

unread,
Oct 10, 2012, 4:19:29 AM10/10/12
to rav...@googlegroups.com
Radenko,
Actually, we delivered 1.0 without an issue. The WebAPI issue came later, and I am sad to say that my crystal ball failed to specify that exact scenario, which is probably while I hurled it out of a tall building. I believe that its last words were "I did not see that coming".

We have a stop gag measure, in build 971, which allows you to use the 4.5 version of json.net on the client.
I am aware of the issues for testing, but the solution for that is 1.2 for now. 

Chris Marisic

unread,
Oct 10, 2012, 10:20:07 AM10/10/12
to rav...@googlegroups.com
I certainly agree with you Oren. There's no way you can be held accountable for a project that badly manages releases that haven't occurred yet.

@Radenko Oren specifically used JSON.NET in a public fashion to give users the greatest harmony for already existing JSON.NET code, especially if you have elaborate serialization schemes. He didn't want users to have to duplicate things that work for JSON.NET to work for RavenDB.JSON.NET. This was the right choice. Unfortunately he and the entire community have been significantly let down by James Newtonking's failure at project and release management.
Reply all
Reply to author
Forward
0 new messages