在Azure上设置NHibernate Velocity缓存

在Azure上设置NHibernate Velocity缓存,nhibernate,azure,appfabric,Nhibernate,Azure,Appfabric,我正在尝试使用Windows Azure缓存为NHibernate 3.2设置二级缓存。到目前为止,我已经使用在我的web.config中设置了Azure缓存: <section name="dataCacheClients" type="Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core" allowLocation="true" all

我正在尝试使用Windows Azure缓存为NHibernate 3.2设置二级缓存。到目前为止,我已经使用在我的web.config中设置了Azure缓存:

<section name="dataCacheClients" type="Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core" allowLocation="true" allowDefinition="Everywhere" />
...
<dataCacheClients>
 <dataCacheClient name="default">
  <autoDiscover isEnabled="true" identifier="App.UI" />
</dataCacheClient>

...

最后,我的hibernate.cfg.xml是:

<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
    ...
    <property name="cache.use_second_level_cache">true</property>
    <property name="cache.use_query_cache" >true</property>
    <property name="cache.provider_class">NHibernate.Caches.Velocity.VelocityProvider, NHibernate.Caches.Velocity</property>
</session-factory>
</hibernate-configuration> 

...
真的
真的
NHibernate.Caches.Velocity.Velocity提供程序,NHibernate.Caches.Velocity
更新 解决了依赖性问题,我现在得到一个错误 {“ErrorCode:\“dcacheClient\”标记未在应用程序配置文件中指定。请在配置文件中指定有效标记。“}

多谢各位