Próbuję rozpocząć pracę z usługą Azure i próbuję użyć funkcji buforowania. Stworzyłem projekt usługi w chmurze i dodano rolę pracownika buforującego pamięć podręczną oraz rolę internetową. Zainstalowałem nuget "Windows Azure Caching" w projektach dla obu ról i dodałem nazwę roli pracownika pamięci podręcznej jako identyfikatora w elemencie DataCacheClients w pliku web.config roli internetowej.Wyjątek podczas korzystania z usługi buforowania systemu Windows Azure: nie jest znany taki host
I dodaje następujący kod do roli internetowej:
DataCacheFactory cf = new DataCacheFactory();
DataCache c = cf.GetDefaultCache();
Kiedy próbuję uruchomić to lokalnie na emulatorze, pojawia się następujący wyjątek:
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
Czy możesz mi powiedzieć czego tu brakuje?
Azure SDK używany: v2.0
Niestety, czas na to pytanie jest dla mnie dobry. :-) –