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.

BUG: Commerce 2002 Business Desk Cannot Properly Handle 302 Redirects


View products that this article applies to.

This article was previously published under Q331940

↑ Back to the top


Symptoms

When you use Commerce Server 2002 Business Desk (BizDesk) in a distributed environment, you may receive the following BizDesk error message:
Error occurred in publishing, 302 Found

↑ Back to the top


Cause

This problem occurs because Commerce Server 2002 Business Desk does not have error handling to redirect correctly when it receives a 302 error from the server.

↑ Back to the top


Resolution

To resolve this problem, check the HTTP status when you call the site refresh pages. If a 302 is returned, read the location from the response header, and then use this information to call the site one more time.

For these files on your Business Desk site
  • Bizdesk\Catalogs\Editor\List_Catalogs.asp
  • Bizdesk\Productionrefresh\Refresh.asp
  • Bizdesk\Profiles\RefreshProfileSvcAll.asp
insert the following code:
'After the first send, check the status, and then redirect if error 302
'is returned:
If srvXmlHttp.status = 302 Then
	sURLString = srvXmlHttp.getResponseHeader("Location")
	Set srvXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
	Call srvXmlHttp.Open ("GET", sURLString, false)
	Call srvXmlHttp.Send()
End if
				

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


Keywords: KB331940, kbpending, kbnofix, kbfix, kbbug, kbqfe, kbhotfixserver

↑ Back to the top

Article Info
Article ID : 331940
Revision : 5
Created on : 9/27/2005
Published on : 9/27/2005
Exists online : False
Views : 310