Copied to clipboard

Flag this post as spam?

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


  • Martijn van der Put 44 posts 65 karma points
    Sep 16, 2010 @ 13:18
    Martijn van der Put
    0

    XSLT error in 4.5 on shared hosting

    Hello,

    I have copied my complete website folder frmo my development machine to my shared hosting account. But when I open my website, all my XSLT files throw an error:

    Error loading XSLT ParcaeMetaHeader.xslt
    Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
      at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
      at System.Security.CodeAccessPermission.Demand()
      at System.Net.CredentialCache.get_DefaultCredentials()
      at umbraco.macro.CreateXsltTransform(XmlTextReader xslReader, Boolean debugMode)
      at umbraco.macro.getXslt(String XsltFile)
      at umbraco.macro.loadMacroXSLT(macro macro, Hashtable attributes, Hashtable pageElements)

    The Umbraco client is working. I first thought of folder permissions but I modified those.

    Anyone any clues?

  • jc 64 posts 101 karma points
    Sep 16, 2010 @ 15:07
    jc
    0

    Are you using any msxml script blocks?

    http://our.umbraco.org/wiki/install-and-setup/medium-trust-with-umbraco-40x (See #5)

  • Martijn van der Put 44 posts 65 karma points
    Sep 16, 2010 @ 15:14
    Martijn van der Put
    0

    Hi Jc,

    i'm not using any msxml script blocks, just plain XSLT.

    I do have this stylesheet declaration in the head of my XSLt file (default Umbraco) but I would guess that this doesn't make any difference.

    <xsl:stylesheet 
      version="1.0" 
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
      xmlns:msxml="urn:schemas-microsoft-com:xslt"
      xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" 
      exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">

  • Martijn van der Put 44 posts 65 karma points
    Sep 16, 2010 @ 16:47
    Martijn van der Put
    0

    I "resolved"  this issue by uprgading my shared hosting account to ASP.NET 4. Without making any other changes my XSLT's do work now.

Please Sign in or register to post replies

Write your reply to:

Draft