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?
Cast error after upgrade
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Cast error after upgrade
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
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
Re: Cast error after upgrade
What category display page you are using on your website where this error is happening?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?
Re: Cast error after upgrade
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.
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.
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Cast error after upgrade
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
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