Copied to clipboard

Flag this post as spam?

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


  • Jesper Hauge 298 posts 487 karma points c-trib
    Oct 28, 2010 @ 16:04
    Jesper Hauge
    0

    Compile error on xslt after xcopy deployment

    I have a problem resembling this one:

    http://our.umbraco.org/forum/templating/templates-and-document-types/12692-Master-page-weirdness-after-xcopy-from-Web-Application-Project

    Only it's on xslt files - and it happens when I copy my xslt file to inetpub/site/xslt with robocopy in a VS2010 after build event.

    Steps to reproduce

    1. Edit xslt file in VS, copy from development dir to the web site xslt dir
    2. Run page with xslt rendered from macro -> Error in xslt compilation
    3. Open file in Umbraco backend and save
    4. Run page again -> NO error in xslt compilation
    Also keeping the deployed file open in Notepad++ I noticed notepad++ reports file as having DOS/Windows line endings and UTF-8 encoding after copying from vs dir, and it changes is to UNIX line endings / ANSI encoding when saving in Umbraco backend. web.config has response/request encoding set to UTF-8. The xslt file has encoding="utf-8" in xml declaration
    WTF is happening?
    Regards
    Jesper Hauge

Please Sign in or register to post replies

Write your reply to:

Draft