Copied to clipboard

Flag this post as spam?

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


  • Almir Vereget 62 posts 150 karma points
    Nov 11, 2015 @ 07:47
    Almir Vereget
    0

    ImageProcessor - Access is denied for all images

    Hi,

    we have this error on all Umbraco 7.3 installs on shared hosting. When we try to browse any image on website we get "Access is denied". Permissions are all set correctly.

    Our hosting admin told us that ImageProcessor.Web is trying to run some async tasks trough cmd.exe and that it has no permissions to do that.

    When we add this configuration to web.config:

    <sectionGroup name="imageProcessor">
      <section name="security" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageSecuritySection, ImageProcessor.Web"/>
      <section name="processing" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageProcessingSection, ImageProcessor.Web"/>
      <section name="caching" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageCacheSection, ImageProcessor.Web"/>
    </sectionGroup>
    

    images are working but than we can't do any manipulation on images like: image.jpg?width=100, all we got is unprocessed image.

    Can someone shed some light on this issue?

    Thanks, Almir

  • Almir Vereget 62 posts 150 karma points
    Nov 11, 2015 @ 12:11
    Almir Vereget
    0

    Any idea?

    Thanks!

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Nov 11, 2015 @ 13:02
    Jeavon Leopold
    0

    Hi Almir,

    Have you checked that the file permissions are correct? ImageProcesor should have permission to execute (it uses some optimisation tools)

    Jeavon

  • James Jackson-South 489 posts 1747 karma points c-trib
    Nov 11, 2015 @ 13:05
    James Jackson-South
    100

    Hi Almir,

    The error is being thrown when the post processor tries to run some third party code via cmd.exe to further compress the output of the NET encoder.

    You have two choices, Either turn off post processing via the config and serve larger files or find an alternative provider who isn't an idiot.

    Azure and AWS both allow access to cmd.exe through shared hosting.

    I hope that clears things up.

    Cheers

    James

Please Sign in or register to post replies

Write your reply to:

Draft