none
ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. Please retry later.

    Question

  • I am trying to learn the cache concept in windows azure, during this i am finding the below error.

    in web config,

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <configSections>
        <!-- Append below entry to configSections. Do not overwrite the full section. -->
        <section name="dataCacheClients" type="Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core" allowLocation="true" allowDefinition="Everywhere" />
      </configSections>
      <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
      </startup>








      <dataCacheClients>
        <dataCacheClient name="sam">
          <hosts>
            <host name="name.cache.windows.net" cachePort="22233" />
          </hosts>


          <securityProperties mode="Message">
            <messageSecurity
              authorizationInfo="took it from the windows azure site"
            </messageSecurity>
          </securityProperties>
        </dataCacheClient>
      </dataCacheClients>
       
    </configuration>

    in Code:----->

    using System;
    using System.Runtime.Serialization;
    using Microsoft.ApplicationServer.Caching;


    namespace MoreCaching
    {
      [DataContract]
      public class Name
      {
        [DataMember]
        public string First { get; set; }
        [DataMember]
        public string Last { get; set; }
      }


      class Program
      {
        static DataCacheFactory _factory = new DataCacheFactory(new DataCacheFactoryConfiguration("sam"));
        static void Main(string[] args)
        {
          DataCache cache = _factory.GetDefaultCache();
          var name = new Name { First = "Scott", Last = "Seely" };
          const string key = "thekey";
          DataCacheItemVersion dciv = cache.Add(key, name, TimeSpan.FromSeconds(30));
          try
          {
            name.First = "Vince";
            cache.Put(key, name, TimeSpan.FromSeconds(30));
            var data = (Name)cache.Get(key);
            Console.WriteLine(data.First);
            cache.Add(key, name, TimeSpan.FromSeconds(30));
          }
          catch (DataCacheException dce)
          {
            if (dce.SubStatus == DataCacheErrorSubStatus.None)
            {
              Console.WriteLine("No extra information");
            }
            Console.WriteLine(dce);
          }


        }
      }
    }

    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.)

    Wednesday, March 07, 2012 6:55 AM

Answers

All replies