Я пытаюсь использовать кэш Azure In-Role (http://www.windowsazure.com/en-us/manage/services/cache/net/how-to-in-role-cache/). Я использую сценарий с выделенной ролью (кэш хоста в выделенной роли). У меня есть 2 роли в решении - рабочая роль и роль кэширования (называется CacheWorkerRole). В app.config моей рабочей роли (кэш-клиент) у меня есть следующее:
<dataCacheClient name="default">
<autoDiscover isEnabled="true" identifier="CacheWorkerRole" />
<localCache isEnabled="true" sync="TimeoutBased" objectCount="100000" ttlValue="300" />
</dataCacheClient>
Когда я делаю локальное развертывание, у меня всегда возникает ошибка:
> 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://CacheWorkerRole:24233.
Я просто понятия не имею, что делать дальше, как решить эту проблему. Я пробовал разные конфигурации, совмещенные и выделенные роли, ничего не работает. Любая помощь будет высоко оценена!