【发布时间】:2019-07-13 01:14:08
【问题描述】:
我目前正在研究将 EPiServer 11.10.1 媒体 blob 从 Windows DFS 共享迁移到 Azure 存储帐户。
尝试的配置如下:
web.config(注意:仅显示相关部分)
<dependentAssembly>
<assemblyIdentity name="EPiServer.Azure" publicKeyToken="8fe83dea738b45b7" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-9.4.4.0" newVersion="9.4.4.0" />
</dependentAssembly>
<episerver.framework updateDatabaseSchema="false">
<clientResources debug="false" />
<appData basePath="" />
<scanAssembly forceBinFolderScan="true" />
<blob defaultProvider="azureblobs">
<providers>
<add name="azureblobs" type="EPiServer.Azure.Blobs.AzureBlobProvider,EPiServer.Azure" connectionStringName="EPiServerAzureBlobs" container="mycontainer"/>
</providers>
</blob>
connectionStrings.config(注意:仅显示相关部分)
<connectionStrings>
<clear />
<add name="EPiServerAzureBlobs" connectionString="DefaultEndpointsProtocol=https;AccountName=storage00001;AccountKey=NuJBkcpuCbPKH+lcw65OwELkJ1nptJ7CY2Hn4MqNwqwL4WY4C3caSSSJYgH91J6MH9qZPPOOSbAzFZrNk8eIHt6PA==" />
</connectionStrings>
启动站点时,日志中显示以下错误:
(注意:仅显示相关部分)
2019-02-19 13:12:41,875 [94] [94a2e50f-06c6-4ddc-a6f7-2d1c43b0735d] ERROR
EPiServer.Global: Unhandled exception in ASP.NET
Microsoft.WindowsAzure.Storage.StorageException: The remote server returned
an error: (404) Not Found. ---> System.Net.WebException: The remote server
returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
Request Information
RequestID:5e731c27-d01e-00cc-4254
RequestDate:Tue, 19 Feb 2019 13:12:41 GMT
StatusMessage:The specified blob does not exist.
我看不到会导致媒体 blob(图像)不显示的错误。
以下方法已经尝试过,但无济于事:
- 权限:Azure 存储帐户 - Blob - 包含(容器和 Blob 的匿名读取访问权限)
- 权限:媒体 blob(图像)可在独立于 EpiServer 平台的浏览器中访问
- Microsoft 支持部门已确认不存在影响存储帐户的已知问题
如果这有所不同,EpiServer 本身运行在专用 VM (IaaS) 上并使用 Azure SQL 数据库。
- appData basePath="" 是否需要包含一个值才能使用 Azure 存储帐户?
欢迎任何关于可能(或我在做什么)错误的建议。
谢谢。
【问题讨论】:
标签: azure azure-storage azure-blob-storage episerver