Commerce Server 2002 - BizDesk refresh cache problems
Have you ever into a problem with BizDesk when
trying to refresh the caches? Does, "An Error occurred while refreshing the
catalog" sound familiar? I have run into this issue many times and I wanted to share some learnings.
The issue is related to MS KB article 825329. In the article, it tells you to change the code in order to append the full URL before redirecting. I discovered a small problem with the script. When the comparison is performed, the Replace() function is called however, by default, the Replace() is case sensitive. Below is what I believe is the correct script.
Change BDRefresh.asp from:
Response.Redirect "BDRefresh.aspx?" & Request.ServerVariables("QUERY_STRING")
To:
Response.Redirect
"http://" & Request.ServerVariables("SERVER_NAME") & ":" &
Request.ServerVariables("SERVER_PORT") &
Replace(LCase(Request.ServerVariables("SCRIPT_NAME")), "bdrefresh.asp", "bdrefresh.aspx")
& "?" & Request.ServerVariables("QUERY_STRING")
Change RefreshApp.asp from:
Response.Redirect("RefreshApp.aspx?" & Request.QueryString)
To:
Response.Redirect
"http://" & Request.ServerVariables("SERVER_NAME") & ":" &
Request.ServerVariables("SERVER_PORT") &
Replace(LCase(Request.ServerVariables("SCRIPT_NAME")), "refreshapp.asp", "refreshapp.aspx")
& "?" & Request.ServerVariables("QUERY_STRING")
Additional resources: Known Issues in Commerce Server 2002 Service Pack 2 - http://support.microsoft.com/default.aspx?kbid=825329
Refreshing Commerce Server Caches - http://www.microsoft.com/technet/prodtechnol/comm/comm2002/deploy/refresh.mspx
0 Comments:
Post a Comment
<< Home