Site Feedback Thread

15 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Cannot get "Show Me The Cache" Azure Achievement to work

Back to Forum: Site Feedback
  • User profile image
    AceHack

    I followed the guide here:

    http://www.windowsazure.com/en-us/develop/net/how-to-guides/cache/

    exactly and my cache is working as expected I am able to store and retrieve data so why has the achievement not shown up?  The azure account I am connecting to is my companies and has been around for a while.  I'm assuming there is something in VS that should be triggering this but it is not.  Thanks.

  • User profile image
    AceHack

    Any idea what's going on here?  Thanks.

  • User profile image
    karstenj

    What's your <dataCacheClient> node look like?

    BTW, you are getting very close to getting them all!

  • User profile image
    AceHack

        <dataCacheClient name="default">
          <hosts>
            <host name="***.cache.windows.net" cachePort="22233" />
          </hosts>
          <securityProperties mode="Message">
            <messageSecurity authorizationInfo="***"></messageSecurity>
          </securityProperties>
        </dataCacheClient>
    

     

    And it's in my web.config of a WCF Cloud Service Project that is successfully hosted in Azure and working with the cache.  I have also debugged locally this project and stepped over the lines that read and write to the cache and it is working as expected.

  • User profile image
    AceHack

    Here is my code using the Cache that IS working

            string GetCache()
            {
                DataCacheFactory cacheFactory = new DataCacheFactory();
                DataCache cache = cacheFactory.GetDefaultCache();
                cache.Put("item", "value");
                var r = (string)cache.Get("item");
                return r;
            }
    

  • User profile image
    AceHack

    Okay this is the last one I need to get and then I have all of them so please help.   Thanks.

  • User profile image
    AceHack

    @karstenj Any suggestions?  Thanks.

  • User profile image
    AceHack

    Okay I'm using version 3.0 and this Achievement still does not pop.  What's the deal!!!

    Using Azure SDK October 2012 and here is my code

    DataCache cache = new DataCache("default");
    cache.Add("item", "value");
    var value = cache.Get("item");
    cache.Remove("item"); 
    

    The code works.

    PLEASE HELP!!!

  • User profile image
    AceHack

    @karstenj:Okay so I've been able to get every other achievement including the new windows 8 ones but this one just will not work.  Please someone help!!!  Thanks.

  • User profile image
    Duncanma

    @AceHack: We'll take a look at this AceHack, I'd have to dig into the achievements code to figure it out, so the safest bet is for me to just get Karsten back on this. Hang tight!

  • User profile image
    karstenj

    @AceHack -- Weird. The achievement gets fired based on your app.config or web.config looking at the dataCacheClient node. According to what you posted in May on this thread, it should have unlocked. Is that still what your dataCacheClient config looks like? 

  • User profile image
    BursaChat
  • User profile image
    AceHack

    Still can't git it.  Please Help!!!

    <dataCacheClients>
        <dataCacheClient name="default">
          <hosts>
            <host name="xxx.cache.windows.net" cachePort="22233" />
          </hosts>
          <securityProperties mode="Message">
            <messageSecurity authorizationInfo="[xxx]"></messageSecurity>
          </securityProperties>
        </dataCacheClient>
        <dataCacheClient name="SslEndpoint">
          <hosts>
            <host name="xxx.cache.windows.net" cachePort="22243" />
          </hosts>
          <securityProperties mode="Message" sslEnabled="true">
            <messageSecurity authorizationInfo="[xxx]"></messageSecurity>
          </securityProperties>
        </dataCacheClient>
      </dataCacheClients>
    

    DataCacheFactoryConfiguration config = new DataCacheFactoryConfiguration("default");
    DataCacheFactory cacheFactory = new DataCacheFactory(config);
    DataCache defaultCache = cacheFactory.GetDefaultCache();
    
    defaultCache.Put("testkey", "testobject");
    string strObject = (string)defaultCache.Get("testkey");
    defaultCache.Remove("testkey");
    

  • User profile image
    AceHack

    Hey got it.  Thanks for all your help.

  • User profile image
    karstenj

    yeah!

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.