作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我一周前使用了这个代码,一切都很好。我的同事仍然使用完全相同的代码,他们完全没有问题。
StorageCredentialsAccountAndKey heronStorage = new StorageCredentialsAccountAndKey("heron", "someKey");
CloudBlobClient blobClient = new CloudBlobClient("someUrl", heronStorage);
CloudBlobContainer container = blobClient.GetContainerReference("containerName");
container.CreateIfNotExist();
container.SetPermissions(new BlobContainerPermissions { PublicAccess = BlobContainerPublicAccessType.Blob });
此代码抛出:“服务器无法对请求进行身份验证。请确保授权 header 的值格式正确,包括签名。”
at container.CreateIfNotExist();
线。
我复制了他们的代码,结果还是一样。我已经没有主意了。
最佳答案
确保您的系统时钟正确同步,错误的时区和不正确的同步会导致哈希失败。服务器使用时间作为同步的一部分来验证请求。
关于c# - Blob上传未授权 服务器无法验证请求异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15874847/
我有以下正则表达式 /[a-zA-Z0-9_-]/ 当字符串只包含从 a 到z 大小写、数字、_ 和 -。 我的代码有什么问题? 能否请您向我提供一个简短的解释和有关如何修复它的代码示例? //var
我是一名优秀的程序员,十分优秀!