I got this exception when I run my application. It happens also in the real Azure blob storage.
I\'ve caught with Fiddler the request that creates this problem:
You can still use OpenRead, you need to pass OperationContext instance like below code:
// cloudBlob instance of CloudPageBlob
OperationContext context = new OperationContext();
context.SendingRequest += (sender, e) => {
e.Request.Headers["if-match"] = "*";
};
using (AutoResetEvent waitHandle = new AutoResetEvent(false))
{
cloudBlob.StreamMinimumReadSizeInBytes = 16385;
var result = cloudBlob.BeginOpenRead(null, null, context,
ar => waitHandle.Set(),
null);
waitHandle.WaitOne();
using (Stream blobStream = vhd.EndOpenRead(result))
{
var k = blobStream.ReadByte();
}
}