Copied to clipboard

Flag this post as spam?

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


  • raj aryan 4 posts 24 karma points
    Aug 18, 2013 @ 22:21
    raj aryan
    0

    Access to the path 'Cached' is denied.

    When I deploy my files onto my hosting server it does not work anymore, on localhost everything is working fine.

    http://**.**/services/ImageGen.ashx?image=/images/image_1.jpg&width=250

    Access to the path 'Cached' is denied.

    However this works fine:

    http://**.**/services/ImageGen.ashx?image=/images/image_1.jpg

    I thought it may be that I need to create the Cached folder myself and also tried giving the folder write permission but then it comes back with the error "Request Failed"

    http://**.**/services/ImageGen.ashx?version 

    ImageGen Basic version 2.5.7.27945
    Professional features are available for localhost
    Professional features are available for *.local

     

    any ideas ? i am using go daddy hosting if that helps 


  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Aug 18, 2013 @ 23:18
    Douglas Robar
    0

    Hi, Raj,

    It does indeed seem to be a permissions issue. The application pool owner needs to have Create/Read/Update permissions to the folder(s) containing the images you are resizing. In your example, the app pool identity would need to be able to create the /images/cached folder and be able to create, read, and update files in that folder.

    The 'cached' folder is created in the same folder as any image that ImageGen resizes.

    cheers, doug.

  • raj aryan 4 posts 24 karma points
    Aug 19, 2013 @ 20:07
    raj aryan
    0

    This is the reply I got from my hosting company:

    "Thank you for your reply. You will not have access to server side logs in our Windows shared hosting environment. It appears that you are attempting to perform a function which requires Full trust. Our hosting accounts have a Medium trust level.
    Trust level refers to permissions set in the Web.config file that dictate what operations can and cannot be performed by Web applications. Our ASP.NET 3.5 and 4.0 shared hosting servers use the default Medium trust level with the addition of OleDbPermission, OdbcPermission, and a less-restrictive WebPermission.

    Applications operating under a Medium trust level have no registry access, no access to the Windows event log, and cannot use ReflectionPermission (but can use Reflection). Such applications can communicate only with a defined range of network addresses and file system access is limited to the application's virtual directory hierarchy.

    Using a Medium trust level prevents applications from accessing shared system resources and eliminates the potential for application interference. Adding OleDbPermission and OdbcPermission allows applications to use those data providers to access databases. WebPermission is modified to allow outbound http and https traffic.

    Please don't hesitate to contact us again if we can be of additional assistance."

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Aug 20, 2013 @ 09:44
    Douglas Robar
    0

    Hi, Raj,

    ImageGen requires full trust (or at least high trust) for some of its resizing operations.

    cheers, doug.

  • raj aryan 4 posts 24 karma points
    Aug 20, 2013 @ 22:32
    raj aryan
    0

    this is a bit of a deal breaker, my hosting wont allow full trust and therefore I cant use this software :(

  • Remko 118 posts 283 karma points
    Jul 03, 2015 @ 15:30
    Remko
    1

    Hi,

    Look at this topic.. http://issues.umbraco.org/issue/U4-6338

    I'm using Windows 2012 R2 server and the application seems to shut down once in a while, which causes the index lock.

    I've installed the microsoft patch, that's mentioned in the topic and never had the lock again.

    Good luck!

Please Sign in or register to post replies

Write your reply to:

Draft