Microsoft KB Archive/887125

From BetaArchive Wiki
Knowledge Base


Article ID: 887125

Article Last Modified on 2/14/2007



APPLIES TO

  • Microsoft Commerce Server 2002 Standard Edition




SYMPTOMS

In Microsoft Commerce Server 2002, the Catalog Base Class Library (BCL) cache does not appear to operate successfully and the caching is not provided.

CAUSE

This behavior occurs because the CachingEnabled property is set to false by default. Therefore, the Catalog BCL cache is disabled.

RESOLUTION

To resolve this problem, modify the setting by using the sample code that is in the "More Information" section. This enables the Catalog BCL cache.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

You must add the following code to the Commerce Server Retail 2002 sample site in the Application.cs file. Add the following code by using the Microsoft.CommerceServer.Runtime.Catalog namespace:

Public override void Init()

            {

                  base.Init ();

                  CommerceCatalogModule.CatalogContext.CachingEnabled = true;

            }

The Retail2002 site is a functional example of a site that was created by using Microsoft .NET technologies and Commerce Server 2002. It is a sample site only. It was not tested or intended to be production grade. If you extend the site for your own use, we recommend that you thoroughly test the site to make sure that the site and your extensions meet your requirements.

For more information about catalog caching, visit the following Microsoft Developer Network (MSDN) Web site:

For more information about the Retail2002 site, visit the following MSDN Web site:

For more information, visit the following Microsoft Web site:

Microsoft Solution for Internet Business (MSIB) was developed because emerging business models have transformed Internet sites from relatively simple structures that are made up of linked HTML pages to complex, feature-rich applications. These applications provide content and automate business processes, such as selling and purchasing, and also provide personalization and collect data for analysis. MSIB is an integrated solution that uses high-quality Microsoft Windows Server System servers to provide end-to-end processes and features for sophisticated Internet sites.

For more information, visit the following Microsoft Web site:

Keywords: kbfix kbqfe kbbug KB887125