the application cannot call put/add/get methods on Win7 to the App fabric on the remote Win08 R2 server

Unanswered the application cannot call put/add/get methods on Win7 to the App fabric on the remote Win08 R2 server

  • Friday, January 13, 2012 12:52 PM
     
     

    Hi All,

          Currently I write my code in my local box which is a 64-bit Win7, and try to connect to the App Fabric on the remote Win08 R2 on the remote server.

           the code is as following:

      

    DataCacheServerEndpoint[] servers = new DataCacheServerEndpoint[1];

     

                servers[0] = new DataCacheServerEndpoint("remoteserver.redmond.corp.microsoft.com", 22233);

     

                // Setup the DataCacheFactory configuration.

     

                DataCacheFactoryConfiguration factoryConfig = new DataCacheFactoryConfiguration();

     

                factoryConfig.Servers = servers;

     

     

     

     

     

                // Create a configured DataCacheFactory object.

     

                DataCacheFactory mycacheFactory = new DataCacheFactory(factoryConfig);

     

     

     

                // Get a cache client for the cache "NamedCache1".

     

                DataCache myDefaultCache = mycacheFactory.GetCache("MyCache");

     

     

     

                string a = "Cache1";

     

                myDefaultCache.Add("123", a); // facing error

     

                object b = myDefaultCache.Get("123");

     

                Console.WriteLine(b.ToString());

     

                Console.ReadLine();

     

     

     

    The error message is as following:

     

     

     

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

     

     

     

    I feel very strange that I didn’t get any error for GetCache method that is to say there’s no security/connection issue between my local box and the remote app fabric one, why am I facing this error when I try to add some items into cache?

     

     

     

    I searched out a lot of comments on Internet and tried all of them, but it doesn’t work for me. However, I list them as following:

     

    1.       Make sure use Grant-CacheAllowedClientAccount to grant permission to your account and computer account

     

    2.       Make sure you open the Port 22233 on the app fabric server

     

    3.       Make sure the App Fabric is started

     

    4.      Add the <transportProperties maxBufferSize="2147483647" /> in config file for both client application and server appFabric config.

     

     

     

    Finally I guess that whether there is a bug for App Fabric that cannot use cache functionality from a Win7 client side to Win08 R2 of App Fabric?

    Best Wishes

All Replies

  • Friday, January 27, 2012 10:47 AM
     
     

     

    Are you hitting this issue consistently ? Which version of server are you using v1.0 OR v1.1 ?


    arunks
  • Sunday, January 29, 2012 2:58 PM
     
     

    What is the cache cluster health when you start your app? this can be known using Get-CacheClusterHealth cmdlet.

    Also can you check this common exceptions - http://msdn.microsoft.com/en-us/library/ff637716.aspx

    Thanks!

  • Tuesday, January 31, 2012 10:23 AM
     
     
    yes, I am still facing this issue. What's the meaning of "version" here? Do you mean the version of "App Fabric"? I used 6.1
  • Tuesday, January 31, 2012 10:27 AM
     
     

    I typied this command in the Cache Powershell Command on  the remote server, it can show the cache statics correctly just like this:

    Cluster health statistics
    =========================

    HostName = remoteserverName

    -------------------------

     

        NamedCache = PolicySetsCache
            Healthy              = 10.00
            UnderReconfiguration = 0.00
            NotPrimary           = 0.00
            NoWriteQuorum        = 0.00

        NamedCache = default
            Healthy              = 10.00
            UnderReconfiguration = 0.00
            NotPrimary           = 0.00
            NoWriteQuorum        = 0.00
            Throttled            = 0.00