使用Azure AppFabric缓存服务作为NHibernate的二级缓存的Azure nuget包在Azure SDK的V1.8中工作得很好。
然而,在升级到Azure SDK的VS2012和2.0版本后,AppFabric包已停止工作,并且nuget DLL无法与Azure AppFabric缓存服务建立连接。我们在连接到Azure AppFabric缓存服务时遇到以下错误:
Exception type: DataCacheException
Exception message: ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. Please retry later. (One or more specified cache servers are unavailable, which could be caused by busy network or servers. For on-premises cache clusters, also verify the following conditions. Ensure that security permission has been granted for this client account, and check that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater than or equal to the serialized object size sent from the client.). Additional Information : The client was trying to communicate with the server: net.tcp://192.168.171.9:20005.在Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ErrStatus属性)在Microsoft.ApplicationServer.Caching.DataCacheFactory.EstablishConnection(IEnumerable1 servers, RequestBody request, Func3 sendMessageDelegate )在Microsoft.ApplicationServer.Caching.SocketClientProtocol.Initialize(IEnumerable1 servers) at Microsoft.ApplicationServer.Caching.DataCacheFactory.GetCache(String cacheName, CreateNewCacheDelegate cacheCreationDelegate, DataCacheInitializationViaCopyDelegate initializeDelegate) at NHibernate.Caches.AppFabric.AppFabricCacheFactory.GetCache(String cacheName, Boolean useDefault) at NHibernate.Caches.AppFabric.Adapters.AppFabricCacheNamedAdapter.GetCache(IAppFabricCacheFactory cacheFactory) 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, IDictionary2属性)在NHibernate.Cache.CacheFactory.CreateCache(String使用,字符串名称,布尔可变,设置设置,标识`2属性)在NHibernate.Impl.SessionFactoryImpl..ctor(Configuration配置,IMapping映射,设置设置,EventListeners侦听器)
=====================================================
你能建议一下如何解决这个问题吗?
谢谢
发布于 2013-10-08 14:01:02
根据演练,提到的异常主要是由于以下两种原因中的任何一种而引发的
在服务器和客户端configurations.的安全凭据中访问AppFabric.
话虽如此,我提到的这项研究并不是为了azure,但我仍然希望它是不受帮助的。请参阅以下链接:http://blogs.msdn.com/b/mspfe/archive/2013/03/22/the-case-of-the-broken-appfabric.aspx
https://stackoverflow.com/questions/18011702
复制相似问题