Microsoft KB Archive/810873

= PRB: Cannot Refresh Multi-Server Web Farm Cache from the Business Desk =

Article ID: 810873

Article Last Modified on 4/21/2003

-

APPLIES TO


 * Microsoft Solution for Internet Business 2.5

-



SYMPTOMS
When you try to refresh caches from the Business Desk (BizDesk), the refresh does not work as expected in a multiple Web server environment.



CAUSE
This behavior occurs because of a problem in the way that the run-time data caches are registered. Among the affected caches are catalog, profile, page profile, PCO, and campaign.



RESOLUTION
To change your code to create a cache for each server in your multiple Web server environment, follow these steps:  In the Global.asax.cs file, make the following changes:   In #region Namespaces, add the following code: using Microsoft.CommerceServer.Runtime.Targeting;

using csInterop = Microsoft.CommerceServer.Interop;   In #region Data Members, add the following code: private bool cacheAppUrlSet = false;   In public override void Init , add the following code: if (cacheAppUrlSet == false)

{

// Get cache from CommerceCacheModule.ContentSelectionContexts[&quot;Advertising&quot;][&quot;CacheManager&quot;].

csInterop.Caching.CacheManager cacheManager =(csInterop.Caching.CacheManager)

CommerceContentSelectionModule.ContentSelectionContexts[&quot;Advertising&quot;][&quot;CacheManager&quot;];

// Set the AppUrl property.

cacheManager.AppUrl = &quot;http://&quot; + Environment.MachineName + &quot;/MSIB20&quot;;

cacheAppUrlSet = true;

}   Open the MSIB20.csproj file in Visual Studio .NET, and then add a reference to \Assemblies\CacheCompLib.dll. Recompile the application in Visual Studio .NET.</li> Propagate Microsoft.Solutions.InternetBusiness.dll to each Web server in the MSIB20\bin folder.</li> In BizDesk, delete all previously registered caches in Publish PCOs under Targeting, in Publish Profiles under Profiles, and in Publish Campaigns under Campaigns (if any).</li> Visit the Web site on each server to reregister the caches. To register the PCO cache, you must view a page that has Targeted Content - in the sample site that is the About page.</li> In BizDesk, there is now one entry per server in the BizDesk module lists, instead of only one for the shared Fully Qualified Domain Name (FQDN).</li></ol>

Keywords: kbinfo kbprb KB810873

-

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

© Microsoft Corporation. All rights reserved.