Image Editor throws exceptions in Azure

  • Description

    The following exception message is displayed in Sitecore XP on Azure while trying to resize/edit/flip/crop/rotate an existing image.

    [FileNotFoundException: D:\home\site\wwwroot\~\temp\imager.20171121t1345312083.jpg.aspx]
       System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +632138
       Sitecore.Shell.Applications.Media.Imager.ImagerResizeForm.OnLoad(EventArgs e) +142
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
       System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +128
       System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +146
       Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj) +89
       Sitecore.Web.UI.Sheer.ClientPage.OnLoad(EventArgs e) +591
       System.Web.UI.Control.LoadRecursive() +68
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3811

    This issue occurs due to incorrect configuration in the \App_Config\Sitecore.config file. The Image Editor attempts to access an item in an invalid \tempFolder instead of \temp.

Applies to:

CMS 8.2+

March 29, 2019
March 29, 2019

Reference number:

134934