我正在尝试开始使用 Azure 并尝试使用缓存功能。我创建了一个云服务项目并添加了一个缓存工作者角色和一个 Web 角色。我将“Windows Azure 缓存”nuget 安装到两个角色的项目中,并在 Web 角色的 web.config 中的 DataCacheClients 元素中添加了缓存工作者角色的名称作为标识符。
我在 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