an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > ParentKey and ChildKey are identical.
Last Post 5/28/2008 9:42:21 PM By webpro6030. 2 replies.
5/28/2008 8:51:58 PM
webpro6030
Posts: 7
Joined: 5/28/2008
ParentKey and ChildKey are identical.

I have installed the shopping cart on an XP home pc and the installation went very smooth. When I start to use the admin and adding categories I get the following error. It is funny because if I try and add a category like "aaaa" it works fine but when I add a category like "Files & Filing Supplies", I cannot get it to work. Any help would be appreciated.

ParentKey and ChildKey are identical.

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.Data.InvalidConstraintException: ParentKey and ChildKey are identical.

Source Error:

<table width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td>

Line 37:                 categories = Category.GetCategories(0, 2);
Line 38:             } else {
Line 39:                 Category current = Category.GetCategoryByCategoryPath(categoryPath);
Line 40:                 categories = new Category[] { current };
Line 41:                 // add root category to ease navigation
</td> </tr> </tbody> </table>
Source File: e:\DotShoppingCart\DotShoppingCart_V1.1_Binary\web\Controls\LayoutPanels\CategoryList.ascx.cs    Line: 39

5/28/2008 9:02:24 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: ParentKey and ChildKey are identical.

You seem to use V1.1. Can you try the latest version V2?

DotShoppingCart Staff
5/28/2008 9:42:21 PM
webpro6030
Posts: 7
Joined: 5/28/2008
Re: ParentKey and ChildKey are identical.

Thanks, that did it.

Appreciate your quick response.