2013-08-02 80 views
0

NHibernate.Caches.Appfabric用於使用Azure AppFabric緩存服務作爲NHibernate的二級緩存的nuget包與Azure SDK的V 1.8一起正常工作。NHibernate.Caches.AppFabric nuget包無法與Azure AppFabric緩存建立連接

但是,升級到VS 2012和版本2.0的Azure SDK後,Nuget軟件包已停止工作,並且AppFabric 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 errStatus,的Guid trackingId,異常responseException,字節[] []有效載荷的EndpointId目的地) 在Microsoft.ApplicationServer.Caching.DataCacheFactory.EstablishConnection(IEnumerable的1 servers, RequestBody request, Func 3 sendMessageDelegate,DataCacheReadyRetryPolicy retryPolicy) 在Microsoft.ApplicationServer.Caching.SocketClientProtocol.Initialize(IEnumerable的1 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, IDictionary 2屬性) 在NHibernate.Cache.CacheFactory.CreateCache(字符串用法,字符串名稱,布爾可變,設置設置,IDictionary`2屬性) at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg,IMapping mapping,Settings settings,EventListeners listeners)

=============== ======================================

你能建議如何解決這個問題嗎?問題??

感謝

回答

0

按照演練提到的異常主要是由於拋出要麼兩個原因

  1. 帳戶訪問的AppFabric。
  2. 服務器和客戶端配置的安全憑證不匹配。

話雖如此,我所指的研究並不是爲了天青,而是我仍然希望它沒有幫助。請參閱下面的鏈接, http://blogs.msdn.com/b/mspfe/archive/2013/03/22/the-case-of-the-broken-appfabric.aspx

+0

請嘗試閱讀本文http://stackoverflow.com/help/deleted-answers,以獲得更多瞭解如何**不**回答。即:「不能從根本上回答問題的答案」:**僅僅是一個鏈接到外部網站** –