I am new to using Umbraco and wanted to install this Starter Kit to review it for use in an upcoming project, but now I cannot uninstall it. I get the following error:
Server Error in '/' Application.
Can't delete a Document Type used as a Master Content Type. Please remove all references first!
Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.
Exception Details: System.ArgumentException: Can't delete a Document Type used as a Master Content Type. Please remove all references first!
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: Can't delete a Document Type used as a Master Content Type. Please remove all references first!]
umbraco.cms.businesslogic.web.DocumentType.delete() +253
umbraco.presentation.developer.packages.installedPackage.confirmUnInstall(Object sender, EventArgs e) +1353
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
All doc types used by this package should be grouped under a single containing doc type. It looks like Umbraco is having issues removing these (this package doesn't try to anything extra on uninstall).
Try deleting all the associated doc types and then running the uninstaller again.
It seems that a bug of some kind was causing me to be unable to empty the recycle bin with 67 items... The path fixup package didn't help.
However a sql script emptying the recycle bin fixed all my problems, and the package was uninstalled without any problems... go figure :-S
Anyway here's the script: (http://www.blogfodder.co.uk/2011/5/26/mass-delete-over-1k-nodes-from-recycle-bin-in-47)
-- Uncomment below to verify the number of nodes returned is the-- same as the number of nodes that is in the Recycle Bin-- select * from umbracoNode where path like '%-20%' and id!=-20-- Delete all 'related' nodes and table contents...deletefrom cmsPreviewXml where nodeId in (select id from umbracoNode wherepathlike'%-20%'and id!=-20)
deletefrom cmsContentVersion where ContentId in (select id from umbracoNode wherepathlike'%-20%'and id!=-20)
deletefrom cmsContent where nodeId in (select id from umbracoNode wherepathlike'%-20%'and id!=-20)
deletefrom cmsContentXML where nodeId in (select id from umbracoNode wherepathlike'%-20%'and id!=-20)
deletefrom cmsDocument where nodeId in (select id from umbracoNode wherepathlike'%-20%'and id!=-20)
deletefrom cmsPropertyData where contentNodeId in (select id from umbracoNode wherepathlike'%-20%'and id!=-20)
-- delete the XML nodes....deletefrom umbracoNode wherepathlike'%-20%'and id!=-20
I have just encountered the same problem. I managed to uninstall by following the steps 1-7 above but then noticed all my nodes where in the recycle bin. Any ideas what I did wrong and how I can get it back without rebuilding the whole site?
Cannot Uninstall Package
I am new to using Umbraco and wanted to install this Starter Kit to review it for use in an upcoming project, but now I cannot uninstall it. I get the following error:
Server Error in '/' Application.
Can't delete a Document Type used as a Master Content Type. Please remove all references first!
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.ArgumentException: Can't delete a Document Type used as a Master Content Type. Please remove all references first!
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Hi Scott
What version of Umbraco do you have installed?
And which one of the starter kits?
/Jan
umbraco v 4.6.1 (Assembly version: 1.0.4029.25836)
Koiak Standard Site (Starter Kit)
Hi Scott
Ah, sorry did not notice this post was in the "Standard website" forum.
I just read "starter kit", which confused me for a moment there since starter kit's have been introduced with Umbraco from version 4.6.
But this starter kit is a 3rd party package - There have been some bugs with the default starter kits that you can choose from during installation.
Must admit I'm not sure why this packages is acting up when you try to uninstall it.
But is there any chance that you can delete the nodes in the content section manually and then try to uninstall the package again?
/Jan
I have deleted the nodes and emptied the Recycle Bin, but that did not enable me to uninstall the package.
Hi Scott,
All doc types used by this package should be grouped under a single containing doc type. It looks like Umbraco is having issues removing these (this package doesn't try to anything extra on uninstall).
Try deleting all the associated doc types and then running the uninstaller again.
Chris
Having exact same uninstall issue. Cannot uninstall the starter kit. I've tried all suggestions above.
Any other thoughts?
Had the same problem. Did the following and I managed to uninstall:-
1. Go into "Settings" section and select "Document Types"
2. Delete all document types at the same level as "Content Master" but NOT "Content Master"
3. Drill down into Base > Content Master
4. Delete "Homepage" and "Standard" document types
5. Delete "Content Master" document type
6. Delete "Base" document type
7. Try the uninstall again
Thanks Simon! That worked.
As a further note, i had actually incorrectly installed 2 versions of the Koiak Standard Site (Starter Kit).
After following Simons instructions above, right-click the "Developer" folder and Reload the nodes.
Okay - I have a simular problem with this package. But my problem is also that I can not remove any of the document types! I get an error message:
Error handling action
Umbraco Exception (DataLayer): SQL helper exception in ExecuteNonQuery
Can anyone please help me?!?
OK - so here's what I found out...
It seems that a bug of some kind was causing me to be unable to empty the recycle bin with 67 items... The path fixup package didn't help.
However a sql script emptying the recycle bin fixed all my problems, and the package was uninstalled without any problems... go figure :-S
Anyway here's the script: (http://www.blogfodder.co.uk/2011/5/26/mass-delete-over-1k-nodes-from-recycle-bin-in-47)
I have just encountered the same problem. I managed to uninstall by following the steps 1-7 above but then noticed all my nodes where in the recycle bin. Any ideas what I did wrong and how I can get it back without rebuilding the whole site?
Thanks
is working on a reply...