Copied to clipboard

Flag this post as spam?

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


  • Thomas Vestergaard 52 posts 138 karma points
    Feb 03, 2010 @ 19:41
    Thomas Vestergaard
    0

    Trouble creating web.config appSetting in package action

    Hey

    On 4.1 beta, i'm having trouble getting a package to put a new appSetting when being instaled. I'm creating the package from 4.1 beta and installing it on 4.1 beta.

    I have this in the "package actions" tab:

    <Action runat="install" undo="true/false" alias="AddAppConfigKey" key="APIKey" value="Enter your API key here" />

     

    Anyone?

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Feb 04, 2010 @ 09:41
    Richard Soeteman
    0

    Hi Thomas,

    This Package action is coming from the PackageActions contrib project which means you should download the PackageActionsContrib DLL from codeplex and add it to the Bin folder of your Umbraco Install. Also change the Undo attribute to either true or false.

    Hope it helps you,

    Richard

  • Thomas Vestergaard 52 posts 138 karma points
    Feb 04, 2010 @ 15:03
    Thomas Vestergaard
    0

    That did the trick.

    Thanks a bunch Richard :)

     

    /Thomas

  • Thomas Vestergaard 52 posts 138 karma points
    Feb 05, 2010 @ 11:15
    Thomas Vestergaard
    0

    Now I have another problem. I need to add an XSLT extension via the package.

    I found this in the WIKI, but it does not work.

    <Action runat="install" alias="addXsltExtension" assembly="/bin/umbraco" type=”umbraco.library” extensionAlias=”umb.lib” />

    Anyone?

    /Thomas

  • Mads Foersom 2 posts 22 karma points
    Feb 05, 2010 @ 14:08
    Mads Foersom
    0

    The problem with the addXsltExtension action is also occurring in Umbraco v 4.0.3, so it's not a beta issue.

  • Mads Foersom 2 posts 22 karma points
    Feb 05, 2010 @ 15:27
    Mads Foersom
    0

    Turns out the problem here was the difference between " and .

    If you copy & paste from umbraco.org/documentation/books/package-actions-reference/add-xslt-extension or our.umbraco.org/wiki/reference/packaging/package-actions/add-xslt-extension you will get this error.

    Perhaps a site adminstrator should correct this.

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Feb 05, 2010 @ 16:05
    Richard Soeteman
    0

    Thanks,

    I've updated the WIKI. and hey its a Wiki so you can change it yourself also ;-)

    Thanks again,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft