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.
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.
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.
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
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.
nope nothing. I don't get any log entries when I install the package either.
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.
Is there anything in the log at all? Logging is enabled in the umbracoSettings.config file:
Look for:
Version 4.0.2.1 had some issues with uninstall, but they should be fixed i 4.0.3
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" />
In earlier version I think it helped to remove the undo="true" attribute all together... maybe that still works?
is working on a reply...