Microsoft KB Archive/887125

= FIX: The Catalog BCL CachingEnabled property is set to false by default =

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 &quot;More Information&quot; 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 &quot;Applies to&quot; 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:

http://msdn2.microsoft.com/en-us/library/ms959508.aspx

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

http://msdn2.microsoft.com/en-us/library/ms960608.aspx

For more information, visit the following Microsoft Web site:

http://www.microsoft.com/commerceserver/downloads/solutionsites2002.mspx

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:

http://www.microsoft.com/downloads/details.aspx?FamilyID=3347ea8e-ed23-41e5-b77b-5ffb542106e9&displaylang=en

Keywords: kbfix kbqfe kbbug KB887125

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.