Copied to clipboard

Flag this post as spam?

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


  • Hassan Ata Ullah 6 posts 56 karma points
    Jun 30, 2013 @ 15:44
    Hassan Ata Ullah
    0

    Imagegen: image failed to show

    Hej Guys

    I m working with imagegen. I have created a macro to create image thumbnails. And its all working when I run the site from LocalHost. The thumbnails shows up perfectly. 

    The problem comes when I put the the site on IIS 7. Then i get the msg "The image failed to load".

    I inspected the problem with firebug and it comes with a error below:

    "NetworkError: 404 Not Found - http://foss226/imageGen.ashx?image=%2fmedia%2f1001%2f1.png&width=150&height=100"

    I m using umbraco 6.1.1

    Hope you guys can help.

    Thanks

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 30, 2013 @ 16:34
    Jan Skovgaard
    0

    Hi Hassan and welcome to our :)

    I think the reason why it fails is because the ImageGen.ashx handler is probably not found at the location specified. There was a time where it was placed directly in the root of the website but in newer releases it's actually placed inside the Umbraco folder. So you should be able to get things working by calling it like this instead

    http://foss226/umbraco/imagegen.ashx?image=yourimagepath.png&width=150&height=100

    Hope this helps.

    /Jan

  • Hassan Ata Ullah 6 posts 56 karma points
    Jun 30, 2013 @ 17:57
    Hassan Ata Ullah
    0

    Hej Jan 

    Thanks for the answer but it didnt work. Still got the same error:

    "NetworkError: 404 Not Found - http://foss226/umbraco/imageGen.ashx?image=%2fmedia%2f1001%2f1.png&width=150&height=100"

    My imagegen.ashx is located at the root of the website and not in the umbraco folder. 

    The funny thing is that my image is named 1 and it shows that instead of the thumbnail. 

  • Hassan Ata Ullah 6 posts 56 karma points
    Jul 01, 2013 @ 03:03
    Hassan Ata Ullah
    100

    Hej Jan 

    I solved it. Problem was that IIS couldnt read the ashx file extension. Added it to the IIS mime type and suddenly it began showing the hello world image from imagegen.aspx. The second problem was that I didnt have my url right.

    On the localhost the url worked  

    http://foss226/imageGen.ashx?image=%2fmedia%2f1001%2f1.png&width=150&height=100

    But not on the server. I added the sitename to the url and the cropped images showed perfectly though the localhost version dont show the images now :)

Please Sign in or register to post replies

Write your reply to:

Draft