Skip to content

The specified blob does not exist

Robert Greiner
Robert Greiner
1 min read
Microsoft.WindowsAzure.StorageClient.StorageClientException: The specified blob does not exist.

There are two different scenarios that will throw this exception when trying to call CloudBlob.DownloadText(). The first, and least interesting, is that the blob reference you are holding on to actually doesn't exist. This is simple enough to check and you probably wouldn't have made it this far in your searching had that been the original problem. I digress.

The second scenario that results in the above error is that you are behind a firewall that blocks outgoing requests to Azure Blob Storage. You can confirm this by running the same code on a different network (I just connected my laptop to my phone's hotspot) and see if everything magically starts working.

The easiest way around this issue is to make sure the baseAddress property in the CloudBlobClient object starts with https. You should be doing this anyway.

new CloudBlobClient("https://account.blob.core.windows.net/", credentials);

If this still doesn't work, you will have to punch open port 443 on your firewall or resort to the Get Blob REST API method.

Please consider subscribing, it's free.
Technology

Robert Greiner Twitter

Professional optimist. I write a weekly newsletter for humans at the intersection of business, technology, leadership, and career growth.


Related Posts

Members Public

Navigating the Upside Down as a Technology Leader

Ideas for leading technology organizations with confidence and creativity.

Navigating the Upside Down as a Technology Leader
Members Public

Artist for a Day

The future of creative output is multiplied by AI.

Artist for a Day
Members Public

The Auto Industry's Cloud Awakening

Auto manufacturers are behind the cloud adoption curve but are well-positioned to unlock the future of mobility by building foundational capabilities across six key areas.

The Auto Industry's Cloud Awakening