Copied to clipboard

Flag this post as spam?

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


  • skiltz 501 posts 701 karma points
    Mar 01, 2010 @ 00:02
    skiltz
    0

    IPackageAction - Undo Method doesn't fire.

    I created a PackageAction for adding namespaces to web.config.  Execute is working fine but Undo never fires. I've loaded up PackageActionContrib and the included Undo methods don't get fired either. 

    <Action runat="install" undo="true" alias="AddNamespaceKey" namespace="System.Web" />
    <Action runat="install" undo="true" alias="AddAppConfigKey" key="testkey" value="testvalue"></Action>
     

    Am I doing something wrong with the above?  I am using 4.0.3

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Mar 01, 2010 @ 00:26
    Morten Bock
    0

    The uninstaller should be adding a lot of info to the umbracoLog table. Do you get any info in there? Should at least be logging a "executing undo actions" message. It should also log any exceptions there.

  • skiltz 501 posts 701 karma points
    Mar 01, 2010 @ 00:38
    skiltz
    0

    nope nothing.  I don't get any log entries when I install the package either.

  • skiltz 501 posts 701 karma points
    Mar 01, 2010 @ 00:46
    skiltz
    0

    Actually my package has just "Package Actions" nothing else (dt's macros etc).  If I add a documenttype to the package I can see the "executing undo actions" in the umbracoLog table but still my undo method don't get fired. Also no errors.

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Mar 01, 2010 @ 00:49
    Morten Bock
    0

    Is there anything in the log at all? Logging is enabled in the umbracoSettings.config file:

    Look for:

        <enableLogging>true</enableLogging>
        <enableAsyncLogging>true</enableAsyncLogging>

    Version 4.0.2.1 had some issues with uninstall, but they should be fixed i 4.0.3

  • skiltz 501 posts 701 karma points
    Mar 01, 2010 @ 00:53
    skiltz
    0

    Actually this works.  Thanks for your help.

    <Action runat="install" undo="false" alias="AddNamespaceKey" namespace="System.Web" />
    <Action runat="uninstall" undo="true" alias="AddNamespaceKey" namespace="System.Web" />

     

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Mar 01, 2010 @ 00:54
    Morten Bock
    0

    In earlier version I think it helped to remove the undo="true" attribute all together... maybe that still works?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies