I am trying to get started with Azure and trying to use the caching feature. I created a cloud services project and added a working cache role and a web role. I installed nuget "Windows Azure Caching" in projects for both roles and added the name of the cache user role as an identifier in the DataCacheClients element in the web.config of the web role.
I added the following code to the web role:
DataCacheFactory cf = new DataCacheFactory(); DataCache c = cf.GetDefaultCache();
When I try to run this locally in the emulator, I get the following exception:
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
Could you tell me what I am missing here?
Used by Azure SDK: v2.0
caching azure
Aadith
source share