Reputation:
i have an umbraco page and i linked ascx pages from vs2008.my problem is that i cant delete a template in umbraco named admin.whenever i try to delete it shows message
"Item has already been added. Key in dictionary: 'admin' Key being added: 'admin'"
Upvotes: 1
Views: 1376
Reputation: 11
I did it the hard way! (refid being the 'id' show in the status bar when you select a template in the admin cms window)
DELETE FROM [cmsDocumentType]
WHERE templateNodeId = refid
GO
DELETE FROM [cmsTemplate]
WHERE nodeid = refid
GO
DELETE FROM [umbracoNode]
WHERE id = refid
GO
Upvotes: 0
Reputation: 8201
Do you have a template with the same name? Try renaming one maybe? This usually happens because Umbraco doesn't check for duplicates in naming in the first place, but everything must have unique name ...
Upvotes: 1
Reputation:
that is the problem related to your template itself.in your project i think thereare two template aliases with same name "admin". change alias of any one and then try to delete.it will work.
check this tutorial vedios (http://umbraco.com/products/umbracotv)
Upvotes: 1