Resizing an image using AzureReader2 results in 404

邮差的信 提交于 2020-01-21 19:15:12

问题


When I try to resize an image, using AzureReader2, I get a 404. However, this does not happen in development with the storage emulator, only when deployed to Azure. It also doesn't happen when there is no resizing.

So

http://myapp.azurewebsites.net/c-images/product-images/1dc870bd-21a2-4e02-9b60-4750f6b20a7e.png

redirects to

http://mystorage.blob.core.windows.net/product-images/1dc870bd-21a2-4e02-9b60-4750f6b20a7e.png

but

http://myapp.azurewebsites.net/c-images/product-images/1dc870bd-21a2-4e02-9b60-4750f6b20a7e.png?width=100

results in a 404.

Here is my config

<add name="AzureReader2" prefix="~/c-images/" connectionString="DefaultEndpointsProtocol=https;AccountName=mystorage;AccountKey=***" endpoint="http://mystorage.blob.core.windows.net/" />

Any ideas?


回答1:


The issue was that I was precompiling the site when I published it to Azure. Specifically, I had Allow precompiled site to be updated checked and Do on merge selected. Bug filed.



来源:https://stackoverflow.com/questions/17685102/resizing-an-image-using-azurereader2-results-in-404

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!