Cast error after upgrade

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
DeannaLS
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 39
Joined: Mon Apr 03, 2006 4:59 pm

Cast error after upgrade

Post by DeannaLS » Tue Dec 07, 2010 7:03 am

Hi,
We just upgraded from 7.0.4 to 7.0.6 (in two steps - running the 7.0.5 upgrade in between). It worked fine on our dev box with a snapshot of the production database and the same code files. But, when we did it on production we got this error on category.aspx:

Unable to cast object of type 'CommerceBuilder.Catalog.CatalogProductNode' to type 'CommerceBuilder.Catalog.Category'

Any ideas on a fix for this?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Cast error after upgrade

Post by jmestep » Tue Dec 07, 2010 7:44 am

The best thing for you to do would be to find out what line the error was on and compare your page to Able's default category page code.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Cast error after upgrade

Post by mazhar » Wed Dec 08, 2010 6:22 am

DeannaLS wrote:Hi,
We just upgraded from 7.0.4 to 7.0.6 (in two steps - running the 7.0.5 upgrade in between). It worked fine on our dev box with a snapshot of the production database and the same code files. But, when we did it on production we got this error on category.aspx:

Unable to cast object of type 'CommerceBuilder.Catalog.CatalogProductNode' to type 'CommerceBuilder.Catalog.Category'

Any ideas on a fix for this?
What category display page you are using on your website where this error is happening?

DeannaLS
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 39
Joined: Mon Apr 03, 2006 4:59 pm

Re: Cast error after upgrade

Post by DeannaLS » Mon Dec 13, 2010 11:29 am

It happens with a couple of pages - category.aspx, categorysearch.aspx. I think it has something to do with one of the sidebars. I'm not able to replicate it right now on our dev environment, and when I compare the files from dev and prod, they're identical.

Where do the GUI-made customizations get stored? I'm assuming it has something to do with that, but since I can't even get into the edit page view on the erroring pages, I don't know how to reset them.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Cast error after upgrade

Post by jmestep » Mon Dec 13, 2010 3:33 pm

At times in the past, I've had to get into a page that someone had broken using the html editor with nVelocity and I've had to go to the scriplet file in the App_Data folder and delete a section so that I could make a change. In your case, if you suspect sidebars, you could go to the sidebar and delete [[SimpleCategoryList]] or whatever.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply