Smart Client - In process cache
Posted 11 May 2009 - 06:03 AM
I'm trying to setup NHibernate together with NCache. I want to use In Process caching.
On my local machine everything works fine. If I run the application on a machine on which NCache is not installed I get aa "Missing installation folder" - exception.
Next to the exe I put :
- CONFIG FILES :
client.ncconf & config.ncconf
This is the content of the config.nconf
<cache-config name="cdoCache" inproc="true">
<log trace-errors="true" trace-debug="false" enabled="true"/>
<eviction-policy default-priority="normal" eviction-ratio="10%" eviction-enabled="true"/>
- NCache DLL's
- In the app.config I added
<add key="cacheName" value="cdoCache"/>
<add key="enableCacheException" value="true"/>
- I configured NHibernate to use Second level cache (works because I tried with an other provider and then it works correctly).
Any idea of what I forgot or did wrong ?
Posted 12 May 2009 - 06:12 AM
Simply putting the assemblies and config files beside the .exe would not work.
You will need to install NCache on the machine where you want to run your application. That will register the NCache assemblies with the windows.
Let me know if you have any other questions.
Posted 12 May 2009 - 07:29 AM
is there now workaround ? Deploying to the DLL's to the GAC ?
We distribute our application through ONE msi. We can not install ncache manually on all our client machines.
I do not need to run NCache as a service. I just want to use it to cache some reference data comming from NHibernate.
Posted 13 May 2009 - 04:32 AM
NCache Client do not need to run any NCache Services. However the assemblies are needed to be registered with windows.
Please use the NCache Enterprise Edition 3.6.1 which includes the power shell scripts to install NCache remotely on a client machine, where you can customize this installation by just installing the required assemblies and excluding NCacheManager, NCacheMonitor, samples, documentation etc which are not required for an NCache client. You can also disable NCache service and NCache Bridge service on NCache Client machines as they are not required.
You can also go for command line installation option. See the Command Line Install in the NCache Installation Guide here;
Let me know how it goes.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users