Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Greg Fyans 114 posts 273 karma points
    Sep 21, 2016 @ 08:59
    Greg Fyans

    CDN Toolkit isn't using CDN url for media

    Hi Jeavon,

    First thing - great package!

    Second thing - My call to GetCropCdnUrl isn't returning a path to my CDN, but to the web domain.

    So when I set AzureCDNToolkit:UseAzureCdnToolkit to true, my media paths change from:



    So what have I done wrong? :) I'm pretty sure I've followed the set-up instructions correctly.

    My settings are:

    <add key="AzureCDNToolkit:Domain" value="" />
    <add key="AzureCDNToolkit:CdnUrl" value="" />
  • Jeavon Leopold 3004 posts 13192 karma points MVP 7x admin c-trib
    Sep 21, 2016 @ 09:05
    Jeavon Leopold

    Hi Greg,

    Could you confirm that the ImageProcessor Azure Blob Cache plugin is installed and also check that it is creating blobs in the storage account?

    If that's all working fine, then could you check that the server can resolve it's own domain name, e.g. in a browser on the server can you access


  • Greg Fyans 114 posts 273 karma points
    Sep 21, 2016 @ 10:04
    Greg Fyans

    It's not creating blobs in the cache folder any more.

    It was as there were folders in there, but I've just deleted them all and it's not created any since.

    I'll run through the instructions again, clearly I've broken something.

  • Greg Fyans 114 posts 273 karma points
    Sep 21, 2016 @ 10:08
    Greg Fyans

    That's strange, I removed the whole cache folder and it created my cache folder again, but no blobs in it.

    <?xml version="1.0" encoding="utf-8"?>
    <caching currentCache="AzureBlobCache">
        <cache name="DiskCache" type="ImageProcessor.Web.Caching.DiskCache, ImageProcessor.Web" maxDays="365" browserMaxDays="7">
            <setting key="VirtualCachePath" value="~/app_data/cache" />
        <cache name="AzureBlobCache" type="ImageProcessor.Web.Plugins.AzureBlobCache.AzureBlobCache, ImageProcessor.Web.Plugins.AzureBlobCache" maxDays="365">
            <setting key="CachedStorageAccount" value="DefaultEndpointsProtocol=https;AccountName=[myaccountname];AccountKey=[myaccountkey]" />
            <setting key="CachedBlobContainer" value="cache" />
            <setting key="UseCachedContainerInUrl" value="true" />
            <setting key="CachedCDNRoot" value="" />
            <setting key="SourceStorageAccount" value="" />
            <setting key="SourceBlobContainer" value="" />
            <setting key="StreamCachedImage" value="false" />
  • Greg Fyans 114 posts 273 karma points
    Sep 21, 2016 @ 12:51
    Greg Fyans

    Right, I basically reversed everything and started again. No idea what I did, but I clearly broke something.

    It's working now though.

    Got a few dodgy crops, but I think just need to run the crop healer on this site to fix them, so we're all good.


Please Sign in or register to post replies

Write your reply to: