-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Spring.net, NHibernate and NCache
PostPosted: Tue Feb 22, 2011 10:32 pm 
Newbie

Joined: Fri Feb 18, 2011 12:25 am
Posts: 8
Hello,

i'm trying to configure a Spring-Application with NHibernate to use NCache as second level cache provider.

My web.config contains the following ncache section:

<ncache>
<!--region name="default"-->
<add key="cacheName" value="VLSCache"/>
<add key="useAsync" value="false"/>
<add key="enableCacheException" value="false"/>
<dbSync type="sqlDependency"/>
<!-- /region-->
</ncache>

This configuration causes a StackOverflow Exception in the System.xml.dll.
With uncommented "region = default" i've got an Exception:
Error creating context 'spring.root': An item with the same key has already
been added.

Could someone please show me a working web.config?

I'm using the latest Spring.net and NHibernate version.

_________________
christian louboutin


Top
 Profile  
 
 Post subject: Re: Spring.net, NHibernate and NCache
PostPosted: Wed Apr 27, 2011 8:41 am 
Newbie

Joined: Wed Apr 27, 2011 8:31 am
Posts: 3
there must be some other config files, share it as well. its v difficult to advice you from these config files. on the other hand, you can download Free version NCache for NHibernate and it'll a sample code, you can compare that code with the one you are using. here is the link to download NHibernate Level 2 caching with NCache.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.