Cannot run RavenDb Server - Cannot find System.Runtime.Caching

175 views
Skip to first unread message

Depaulo

unread,
Mar 31, 2011, 10:26:06 AM3/31/11
to ravendb
I have downloaded the latest build (Build 309) and when I run
Raven.Server.exe from the command line i get the following error:

System.Reflection.TargetInvocationException: Exception has been thrown
by the ta
rget of an invocation. ---> System.IO.FileNotFoundException: Could not
load file
or assembly 'System.Runtime.Caching, Version=4.0.0.0,
Culture=neutral, PublicKe
yToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot
find the
file specified.
at
Raven.Storage.Esent.TransactionalStorage..ctor(InMemoryRavenConfiguration
configuration, Action onCommit)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo
method, O
bject[] args, SignatureStruct& signature, RuntimeType declaringType)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags
invokeAttr, B
inder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,
Binder bin
der, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at
Raven.Database.Config.InMemoryRavenConfiguration.CreateTransactionalStorag
e(Action notifyAboutWork) in c:\Builds\raven\Raven.Database\Config
\InMemoryRaven
Configuration.cs:line 276
at Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration
configura
tion) in c:\Builds\raven\Raven.Database\DocumentDatabase.cs:line 109
at Raven.Server.RavenDbServer..ctor(RavenConfiguration settings)
at Raven.Server.Program.RunServer(RavenConfiguration
ravenConfiguration)
at Raven.Server.Program.RunInDebugMode(Nullable`1
anonymousUserAccessMode, Ra
venConfiguration ravenConfiguration)
at Raven.Server.Program.InteractiveRun(String[] args)
at Raven.Server.Program.Main(String[] args)

Any idea what I am doing wrong or is there a binary missing in the
release?

Depaulo

unread,
Mar 31, 2011, 10:34:36 AM3/31/11
to ravendb
Oops! I needed to install the .net 4 runtime...

Ayende Rahien

unread,
Mar 31, 2011, 10:34:36 AM3/31/11
to ravendb, Depaulo
Is it possible that you don't have the .NET framework installed, or have only the client profile?

jalchr

unread,
Mar 31, 2011, 10:49:32 AM3/31/11
to rav...@googlegroups.com, Depaulo
That is probably a silly question, by why there is a "Client" version of .net 4 framework ?

Matt Warren

unread,
Mar 31, 2011, 10:53:56 AM3/31/11
to ravendb
It's so you can have a cut-down version that has components more
suited to a client, see http://msdn.microsoft.com/en-us/library/cc656912.aspx

jalchr

unread,
Mar 31, 2011, 10:59:37 AM3/31/11
to rav...@googlegroups.com
NoteNote

If you are targeting the .NET Framework 4 Client Profile, you cannot reference an assembly that is not in the .NET Framework 4 Client Profile. Instead you must target the .NET Framework 4. For more information, see Troubleshooting .NET Framework Targeting Errors.

This means more "Deployment headaches" to me, how much is the size difference anyway

Ayende Rahien

unread,
Mar 31, 2011, 11:08:58 AM3/31/11
to ravendb, jalchr
Not enough to be meaningful, but the client profile is installed on machines by default.

Depaulo

unread,
Mar 31, 2011, 11:21:33 AM3/31/11
to ravendb
It may be worth mentioning on your getting started page that you
need .net 4.0 installed. If people (like me) are using 3.5 they may
not have .net 4 already on their machine and will get this error.

On Mar 31, 4:08 pm, Ayende Rahien <aye...@ayende.com> wrote:
> Not enough to be meaningful, but the client profile is installed on machines
> by default.
>
>
>
>
>
>
>
> On Thu, Mar 31, 2011 at 3:59 PM, jalchr <jal...@gmail.com> wrote:
> > [image: Note]*Note*
>
> > If you are targeting the .NET Framework 4 Client Profile, you cannot
> > reference an assembly that is not in the .NET Framework 4 Client Profile.
> > Instead you must target the .NET Framework 4. For more information, see Troubleshooting
> > .NET Framework Targeting Errors<http://msdn.microsoft.com/en-us/library/cc668079.aspx>
> > .

Ayende Rahien

unread,
Mar 31, 2011, 12:58:13 PM3/31/11
to ravendb, Depaulo
Reply all
Reply to author
Forward
0 new messages