浏览器中的 Azure 文件存储 URL 显示 InvalidHeaderValue

标签 azure azure-storage azure-storage-files

我正在尝试访问 Azure 中给定的 URL 以获取 Azure 文件存储格式的文件,但出现以下错误。有可能得到这个吗?为什么他们要提供一个无用的公共(public) URL?另外我如何直接从 IIS 访问它?

<Error>
<Code>InvalidHeaderValue</Code>
<Message>
The value for one of the HTTP headers is not in the correct format. RequestId:5d681103-0a1a-00cc-5555-5s4849000000 Time:2016-02-04T14:06:50.1786949Z
</Message>
<HeaderName>x-ms-version</HeaderName>
<HeaderValue/>
</Error>

最佳答案

Gaurav 已经提到过类似的问题 here它说你应该使用“共享访问签名”。在 Azure 中的存储帐户设置中,您将找到一个主题“共享访问签名”。单击“生成 SAS”后,您将获得一个“SAS token ”,您需要将其附加到 URL 中。

Shared Access Signature

关于浏览器中的 Azure 文件存储 URL 显示 InvalidHeaderValue,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35203205/

相关文章:

asp.net - 将文件从 Asp.Net 写入 Azure 文件存储失败

azure - 无法删除 Azure 文件共享中的文件,错误 : The specified resource is read-only and cannot be modified at this time

azure - ASP.NET 5 Web 应用程序作为 Azure Web 角色?

ios - microsoft azure 客户端 swift 库选择 nolock

azure - 有没有办法在 Azure Kubernetes 服务中运行现有的 ASP.NET Web API?

azure - 在 AAD 中注册的应用程序被拒绝 Azure 存储帐户访问

azure - 将图像从 azure blob 存储转换为 Base64?

javascript - 如何解析 Nodejs/javascript 中的 Azure Blob URI?

asp.net - 如何在 MVC 中提供文件而不暴露 URL?

Azure 事件中心多个收件人