Sto tentando di iniziare con Azure e sto tentando di utilizzare la funzionalità di memorizzazione nella cache. Ho creato un progetto di servizio cloud e aggiunto un ruolo di lavoratore cache e un ruolo web. Ho installato il nuget "Cache di Windows Azure" nei progetti per entrambi i ruoli e aggiunto il nome del ruolo di cache worker come identificatore nell'elemento DataCacheClients in web.config del ruolo web.Eccezione durante l'utilizzo della Caching di Windows Azure: non è noto un host di questo tipo
ho aggiunto il seguente codice nel ruolo web:
DataCacheFactory cf = new DataCacheFactory();
DataCache c = cf.GetDefaultCache();
Quando provo a fare funzionare questo localmente sul emulatore, ottengo la seguente eccezione:
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
Può dirmi cosa mi manca qui?
Azure SDK utilizzato: v2.0
Tragicamente, la tempistica di questa domanda va bene anche per me. :-) –