我想嘗試使用Azure,並嘗試使用緩存功能。我創建了一個雲服務項目並添加了一個Cache worker角色和一個Web角色。我將「Windows Azure緩存」nuget安裝到兩個角色的項目中,並在Web角色的web.config中的DataCacheClients元素中將緩存輔助角色的名稱添加爲標識符。使用Windows Azure緩存時發生異常:未知此類主機
我下面的代碼添加到Web角色:
DataCacheFactory cf = new DataCacheFactory();
DataCache c = cf.GetDefaultCache();
當我嘗試在模擬器上本地運行,我得到以下異常:
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://MvcWebRole1:24233.
Inner Exception : No such host is known
能否請你告訴我我在這裏錯過了什麼?
使用Azure SDK:v2.0
不幸的是,這個問題的時間對我也有好處。 :-) –