Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've been successful in setting up UmbracoFileSystemProviders.Azure and also utilizing an Azure Cdn. If I statically request the url the CDN is performing as expected.
Naturally I want to use something like the AzureCDNToolkit so I can utilize that functionality in my templates.
My current page template uses @Url.GetCropUrl and works perfectly. Specifically my line of code is:
@Url.GetCropUrl(Model.Content, "photo", "Cover")
and that resolves to an image src from the root '/media/xxxx' etc.. works perfect.
I have installed the AzureCDNToolkit through Nuget, updated the web.config values appropriately. And when I try to change GetCropUrl to GetCropCdnUrl I receive the following error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1928: 'System.Web.Mvc.UrlHelper' does not contain a definition for 'GetCropCdnUrl' and the best extension method overload 'Our.Umbraco.AzureCDNToolkit.UrlHelperRenderExtensions.GetCropCdnUrl(System.Web.Mvc.UrlHelper, Umbraco.Web.Models.ImageCropDataSet, int?, int?, string, string, int?, Umbraco.Web.Models.ImageCropMode?, Umbraco.Web.Models.ImageCropAnchor?, bool, bool, string, string, Umbraco.Web.Models.ImageCropRatioMode?, bool, bool)' has some invalid arguments
Anyone have an idea on why this is happening and what I can do to fix it?
Anything about this? Did you resolve this issue?
We have the same issues in our app.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted