2012-03-22 20 views
1

NHibernate.Caches.Velocityを使用してNhibernate第2レベルキャッシュを実装しようとしていて、here on stack overflowをこのthis blog postを使用して説明しました。解決方法 "この操作はキャッシュでサポートされていません。" AzureのNHibernateキャッシュのために?

アプリケーションは、Nhibernate 3.2を使用したAzure WebRoleです。

"This operation is not supported by the cache." 

スタックトレース:

at Microsoft.ApplicationServer.Caching.DataCacheFactory.ThrowNotSupportedException() 
    at Microsoft.ApplicationServer.Caching.DataCacheFactory.CreateHybridClient(String cacheName, NamedCacheConfiguration config, SimpleSendReceiveModule sendRcvModule) 
    at Microsoft.ApplicationServer.Caching.DataCacheFactory.CreateNewCacheClient(DataCacheDeploymentMode mode, String cacheName, NamedCacheConfiguration config, SimpleSendReceiveModule sendRcvModule) 
    at Microsoft.ApplicationServer.Caching.DataCacheFactory.GetCache(String cacheName) 
    at NHibernate.Caches.AppFabric.AppFabricCacheFactory.GetCache(String cacheName, Boolean useDefault) 
    at NHibernate.Caches.AppFabric.AppFabricCacheAdapter..ctor(String regionName) 
    at NHibernate.Caches.AppFabric.Adapters.AppFabricCacheNamedAdapter..ctor(String regionName) 
    at NHibernate.Caches.AppFabric.AppFabricCacheAdapterFactory.Create(String regionName) 
    at NHibernate.Caches.AppFabric.AppFabricProvider.BuildCache(String regionName, IDictionary`2 properties) 
    at NHibernate.Cache.UpdateTimestampsCache..ctor(Settings settings, IDictionary`2 props) 
    at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners) 
    at NHibernate.Cfg.Configuration.BuildSessionFactory() 
    at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() in d:\Builds\FluentNH\src\FluentNHibernate\Cfg\FluentConfiguration.cs:line 230 

のWeb.Config:

<dataCacheClients> 
    <dataCacheClient name="default"> 
     <hosts> 
     <host name="xxx.cache.windows.net" cachePort="22233" /> 
     </hosts> 
     <securityProperties mode="Message"> 
     <messageSecurity 
      authorizationInfo="xxx"> 
     </messageSecurity> 
     </securityProperties> 
    </dataCacheClient> 
    </dataCacheClients> 

すべては、セッションファクトリーの初期化時にスローされる例外を除いて、正しいように思えます

誰かがこれを引き起こしている手がかりを持っていますか?私はgoogleそれをゼロに関連する結果を得る。

答えて

0

私は、NHibernateがキャッシュの使用を試みる方法に慣れていないが、Azureキャッシングがオンプレミスキャッシュのすべての機能をサポートしているわけではないことを確かめることはできません。私はそれがサポートされていない関数を利用しようとしていると思います。 MSにはlist of the differences between the two

+0

ありがとうございます。他に明白な理由がないので、そのように思えます。 –

関連する問題