Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm getting the following
problem when trying to render a image with Imagegen. Using the 2.2
update for Imagegen and Umbraco 4.5.2.
I don't have medium trust set in my web.config.
My XSLT file looks like this:
<img> <xsl:attribute name="src"> <xsl:text>/umbraco/ImageGen.ashx?image=</xsl:text> <xsl:value-of select="$mediaNode/umbracoFile" />
<xsl:text>&width=520</xsl:text> <xsl:text>&compression=80</xsl:text> <xsl:text>&constrain=true</xsl:text> </xsl:attribute> </img>
What could be the cause of this?
ImageGen is not (yet) medium-trust capable. It needs at least high trust and preferably full trust.
Thanks for your reply. That's the thing. I don't have medium trust set in my web.config. Haven't done any changes at all and from what I've read full trust is default. Any ideas what I can look for?
ImageGen is going to create a 'cached' folder below the image you are trying to resize (probably in the /media folder but also the /data and /app_data folders). Perhaps the application pool owner does not have create/read/update/delete permission to those areas?
You might find that the host has set machine-wide trust levels as well, or created a custom trust environment. Or are you hosting this site yourself?
Hi, right now I'm in development so I'm running it on localhost. The strange thing is that I've used Imagegen in other projects and have never encountered this problem before. What kind of security settings should I allow?
Hey Niklas, if it doesn't work on the same machine, I would look at differences in your web.config files. Have a look at a web.config from a project that does work and compare it with something like winmerge to your current project's web.config. Also make sure the sites / application pools are configured similarly in IIS.
Firstly, thanks heaps for your imagegen solution. It is brilliant and I've used on a few of my sites.
Which is why I now have a little problem. I really have to make them work in medium trust, so I was wondering if there is an update on when v3.0 may be coming?
I also must make the decision whether to use imagegen for the current project i'm working on or not, and I would really really like to as like I said it is brilliant.
If it is not coming soon, do you have some suggestion on what would be a good alternative solution, I only need the thumbnail generation functionality.
Thanks for the kind words; I'm glad you find ImageGen so helpful! Unfortunately, medium trust support is still some time away. I have an update (v2.5) coming soon that has everything short of medium trust support. Perhaps you can get a custom trust level and still use ImageGen?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted