"Could not cache promotions."

I've started getting this error:

"Could not cache promotions. Additional Information: Object reference not set to an instance of an object."

Any idea what causes it?

I can see the line of code in Application_Start(...) of Global.asax that causes the error, but it hasn't changed:

ZNode.Libraries.ECommerce.Business.ZNodePromotion.CacheActivePromotions();

Any idea what causes this?

Resolution

I have my own follow-up to post.

If anyone else encounters this, it points to an issue with the database. I had kept my previous schema, and simply did a query that contained DELETE statements for each table followed by a slew of INSERTS.

The error was resolved when I simply did a full backup of the database, and restored it to the production site.

Mark

Could not cache Promotions

The caching of promotions is one of the first things that happens when you start up the application. If you get this error it is almost always a sign that you are not talking to the database correctly. Since we instantiate objects based on what is read from the database you get object reference errors.

Znode Administrator
email: support@znode.com
url: www.znode.com