Commerce Server Blog

Build world class ecommerce applications using Microsoft Commerce Server
  •  
  • Home
  • Advertise
  • Copyright Policy
  • Disclaimer
  • About

Refresh cache throws HTTP status code 401 (Unauthorized) error

ravikanth | October 29, 2008

Whenever I press “Refresh Site Cache” link in commerce server marketing manager, I get HTTP status code 401 error as shown below. Marketing manager recorded errors in the event log but those details are not helpful to troubleshoot the issue.

I installed fiddler tool to monitor HTTP traffic and surprising I found there are no entries coming into the tool which I click on refresh site cache link. I checked IIS logs and found something strange. Commerce server web services on my box are running under “Network Service” account and this account is also added to the authorization manager. Surprisingly the user name is not getting populated in the log file. When I tried to open the link http://cerebro/OrdersWebService/SiteCacheRefresh.axd?CacheToRefresh=AllMarketingCaches in the browser, IIS is able to write the logged in user name into log file.

What exactly happens when you click on refresh site cache? I assume, when the business tools calls to a page (SiteCacheRefresh.axd) which it internal calls all other cache pages. Somehow the web service is not running under “Network Service” account (blank user name is going to IIS)  I changed and domain account to different domain user (”Administrator”) then the cache started working. I am able to see the user name coming in IIS logs.

Lately I realized that Microsoft has released a work around for this fix. Click below link to get more details about this error.
http://support.microsoft.com/kb/931290

Categories
Troubleshoot
Comments rss
Comments rss
Trackback
Trackback

« Commerce Server 2007 code name “Mojave” October 2008 CTP “Value does not fall within the expected range” while running PortalConfig.exe in Mojave »

One Response to “Refresh cache throws HTTP status code 401 (Unauthorized) error”

  1. Adam says:
    March 16, 2010 at 1:17 pm

    Great post, Thanks,

    Reply

Leave a Reply

Click here to cancel reply.

Powered by WP Hashcash

Sign up for Newsletter


Categories

Quiz

  • Catalog Quiz for Beginners
  • Profile Quiz for Beginners
  • Quiz 1 for Advance Users
  • Quiz for Beginners

Recent Posts

  • RCXml2Resx.exe tool stops working
  • Commerce Server Profile Importer Tool
  • Marketing Web service Exception: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM
  • Download Commerce Server 2009 Help Document
  • Commerce Server 2009 work with SharePoint 2010?
  • Failed to set value for profile property ‘email_address’.
  • ArgumentException: An item with the same key has already been added.
  • Please note that one or more items were removed from your order because the product is no longer sold.
  • How to Avoid Duplicate Orders Numbers in Commerce Server
  • Error: Microsoft.Commerce.Contracts.Faults.ItemDoesNotExistFault

Archives

  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008

Tags

add discounts add images to profile Advantages of commerce server approve discounts authentication auto login process automatic user creation basket Brand Management business tools campaign management Catalog catalog import Category CategoryConfiguration commerce server commerce server 2007 commerce server manager Commerce Server SP2 discounts ecommerce Estimation Installation inventory Kanth Koppala marketing system migration error Mojave operation components operation sequence Order subsystem Product profile profile subsystem property metadata purchase order quick checkout Ravi Ravi Kanth site cache refresh starter site tools transactions error Variant
(c) 2009 Commerce Server Blog. All rights Reserved. Articles cannot be reproduced without permission from the author.Write to me at kanth@ravikanth.net if you have any comments, questions, suggestions about this site or would like to send us a tip
About Us | Terms of Use | Disclaimer | Advertise .