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.
Security Exception
Description: The application attempted to perform an
operation not allowed by the security policy. To grant this
application the required permission please contact your system
administrator or change the application's trust level in the
configuration file.
Exception Details: System.Security.SecurityException:
Request for the permission of type 'System.Web.AspNetHostingPermission,
System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' failed.
Security Exception using Imagegen
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.
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
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?
Thanks
/ Niklas
I think ImageGen requires full trust, refer to the ImageGen doco for what ASP.Net trust level required is and ensure your matching it.
Also, please direct questions relating to ImageGen to the ImageGen support forum - http://our.umbraco.org/projects/website-utilities/imagegen/imagegen-bugs
is working on a reply...