Wednesday, March 6, 2013

Specified blob does not exist

When calling the DownloadByteArray method of the CloubBlob object, I got the error "Specified Blob does not exist". This was my first attempt at serious Cloud programming. I was baffled. Spent the next half an hour looking for clues, replacing \ with / and finally came on to a post on MSDN that stated "Blob names are case sensitive". This was it. I was not using the right case for the blob names and even though the blob existed the method complained that it did not exist.

The context is not currently tracking the entity

My code had a call to the Save method on CloudStorageAccount object after updating a TableServiceEntity object. This resulted in the error: "The context is not currently tracking this entity".
Turns out that this exception was a result of setting the MergeOption on the CloudStorageAccount object to "MergeOption.NoTracking". Changing the code to not use this option resolved the issue.

What is success?

The journey of life takes us through varied experiences like landing an admission at a prestigious college, earning a degree, getting hired,...