jamii Archives: Azure

Haraka na Easy – Salama Azure Foleni Majina

Silly lakini rahisi baada ya.

As a follow-up to yesterday’s posting on “StorageException was unhandled” I thought I’d show the wee snippet of code I use to generate queue names:

 

        umma tuli string GetRandomQueueName()
        {
            Guid g;
            g = System.Guid.NewGuid();
            kurudi g.ToString();

        } 

Kind of silly in its simplicity but works well for me and has generated 100’s of safe queue names in the last couple of weeks.

</mwisho>

undefinedKujiunga na blog yangu.

Kufuata yangu juu ya Twitter kwa http://www.twitter.com/pagalvin

Kufanya kazi na Foleni Azure – "StorageException ilikuwa unhandled”

Nimekuwa kucheza karibu na foleni Azure kwa wiki ya mwisho au mbili na imekuwa ni kwenda smashingly.  Ambapo walikuwa mambo haya wakati mimi zinahitajika kuwarejesha katika 1990?

Makala hii, hasa, ni intro bora ya foleni kwa programmers NET.: http://www.windowsazure.com/en-us/develop/net/how-to-guides/queue-service/.  Kutumia kwamba makala, I’ve been able to pull together a really nice bit of client-server logic that is so far reliable and just works with no grief.  Really – where was this stuff in 1990?

I did hit a small stumbling block right out of the gate, hata hivyo.   As soon as I strayed from the specifics of the walk-through, I got hit with a StorageException and a “The remote server server returned an error (400) Bad Request.

image

It turned out that my queue name was off:

image

When I changed “OneQueueToRuleThemAll” to “onequeuetorulethemall” the StorageException went away.  I haven’t noticed any of the documentation calling this out but it may well do that.

Hope that helps someone.

</mwisho>

undefinedKujiunga na blog yangu.

Kufuata yangu juu ya Twitter kwa http://www.twitter.com/pagalvin