Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: Changes required when catalog refresh done from BizDesk using FQDN


View products that this article applies to.

This article was previously published under Q297109

↑ Back to the top


Symptoms

When you attempt to perform a catalog refresh from the BizDesk Catalog Editor, the refresh does not complete succesfully and you receive the following error message:
An Error occurred while refreshing the catalog cache for:
http://machinename

Details:
Script Error:

Number: 0x80004005
Description: Unspecified Error
Source: msxml2.dll
Help File:
Help Context: 0

↑ Back to the top


Cause

The refresh that is performed from the Catalog Editor uses the NetBIOS name of the computer instead of the fully qualified name. The error occurs after you change the nonsecure or secure HostName of the Commerce Server applications from the NetBIOS name to a fully qualified domain name.

↑ Back to the top


Resolution

To resolve this problem, modify the GetmachinebaseURL function in the Global_siteconfig_lib.asp file that is used to return the base URL for the application so that it returns the fully qualified domain name. The value for the site can be hard-coded as shown in the "More Information" section.

↑ Back to the top


Status

This behavior is by design.

↑ Back to the top


More information

To modify the GetmachinebaseURL function, follow these steps:
1.Modify the GetMachineBaseURL function so that it sets "sWebServerMachine" to the NonSecureHostName that is used for the Commerce site (in most cases the fully qualified domain name (FQDN)). The GetMachineBaseURL function can be found in the following location:
c:\inetpub\wwwroot\Retail\include\global_siteconfig_lib.asp o
in the applicable "include" directory of where your commerce site has been setup.
-----------------------------------------------------------------------------
   ' GetMachineBaseURL
   '
   ' Description:
   '   Returns the base of the URLs for this application specifically for this server.
   ' Notes :
   '   If you wish to use BizDesk production refresh capabilities from a browser outside
   '   the LAN, then this function must be changed so that it returns a computer-specific
   '   URL that works outside the LAN (such as www1.test.com or www2.test.com).
   ' -----------------------------------------------------------------------------


Function GetMachineBaseURL()
Dim iPort, sPort, sWebServerMachine

   'sWebServerMachine = GetComputerName()
sWebServerMachine = "www1.test.com"  ' substitute the fqdn for the machine here.
' We assume the port number is the same for all the Web servers on a Webfarm.
iPort = iGetWebServerPort()

If iPort <> 80 Then
sPort = ":" & CStr(iPort)
End If
    GetMachineBaseURL = "http://" 
    GetMachineBaseURL = GetMachineBaseURL & sWebServerMachine
    GetMachineBaseURL = GetMachineBaseURL & sPort
    
    If GetCommerceSiteInstallPoint() = VIRTUAL_DIRECTORY Then
GetMachineBaseURL = GetMachineBaseURL & "/" & appframework.VirtualDirectory
    End If
End Function
					
NOTE: It may be necessary to delete all entries from the following tables in the Retail_Commerce database and then perform an IISRESET from the command prompt. BizDesk replaces the deleted entries as appropriate:

CatalogCache_Virtual_Directory
TxVirtual_Directory
Virtual_Directory

Steps to Reproduce the Behavior

1.Modify the nonsecure HostName of both applications that are running under a site to a valid, fully qualified domain name that resolves to the IP address of the Web site on which the site is running.
2.Perform an IISReset.
3.In the BizDesk, open the Catalog Editor module, and then attempt to perform a refresh.

↑ Back to the top


Keywords: KB297109, kbprb, kberrmsg

↑ Back to the top

Article Info
Article ID : 297109
Revision : 3
Created on : 8/23/2004
Published on : 8/23/2004
Exists online : False
Views : 416