Image Resizer .net Azure Private Blob Access

时间:2016-03-18 17:27:13

标签: azure blob imageresizer

一直试图解决这个问题,但我有一个包含演示图像的私有blob,我正试图通过resizer应用程序访问它。我正在使用blob的辅助连接字符串,它似乎只是继续抛出404错误

这是gist的链接

https://gist.github.com/dbassassin/d95d4d8f7f21c9d6ee32

感谢任何帮助,我一直认为这只是身份验证问题,或者我错过了一些东西。

我的Web.config成立:

  <resizer>
    <plugins>
      <add name="AzureReader2"
      prefix="~/"
      connectionString="DefaultEndpointsProtocol=https;AccountName=storageaccountnamehere;AccountKey=secretstuffhere==;"
      endpoint="https://cvcdbsaz01.blob.core.windows.net/"
      />
    </plugins>
    <diagnostics enableFor="allhosts" />
  </resizer>

1 个答案:

答案 0 :(得分:0)

设置redirectToBlobIfUnmodified =&#34; false&#34; - AzureReader2目前只能代理私有blob;它无法重定向到它们并生成共享访问签名。

此外,验证您是否可以直接从C#访问容器中的blob。您使用的凭据或容器/路径可能不正确。