Page 1 of 1

Cast error after upgrade

Posted: Tue Dec 07, 2010 7:03 am
by DeannaLS
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?

Re: Cast error after upgrade

Posted: Tue Dec 07, 2010 7:44 am
by jmestep
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.

Re: Cast error after upgrade

Posted: Wed Dec 08, 2010 6:22 am
by mazhar
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?

Re: Cast error after upgrade

Posted: Mon Dec 13, 2010 11:29 am
by DeannaLS
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.

Re: Cast error after upgrade

Posted: Mon Dec 13, 2010 3:33 pm
by jmestep
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.