Ich versuche, mit Azure zu beginnen und versuche, die Caching-Funktion zu verwenden. Ich habe ein Cloud-Service-Projekt erstellt und eine Cache-Rolle und eine Web-Rolle hinzugefügt. Ich habe das Windows Azure Caching-Nuget in Projekte für beide Rollen installiert und den Namen der Cache-Worker-Rolle als Bezeichner im DataCacheClients-Element in web.config der Webrolle hinzugefügt.Ausnahme bei der Verwendung von Windows Azure Caching: Es ist kein solcher Host bekannt
Ich habe den folgenden Code in die Web-Rolle:
DataCacheFactory cf = new DataCacheFactory();
DataCache c = cf.GetDefaultCache();
Wenn ich versuche, diese auf dem Emulator lokal auszuführen, erhalte ich die folgende Ausnahme:
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
Können Sie mir bitte sagen, Was fehlt mir hier?
Azure SDK verwendet: v2.0
Tragischerweise ist das Timing dieser Frage auch gut für mich. :-) –