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:
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
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.
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 :)
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
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
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.
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 :)
is working on a reply...