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.

Error 80004005 "Component Execution failed" for Commerce.CSFLoadHistory


View products that this article applies to.

This article was previously published under Q275734

↑ Back to the top


Symptoms

When a profile is passed as a Dictionary object, you may receive the following error message:
80004005 - Component Execution failed for component[0x1] hr: 0x80004005
ProgID: Commerce.CSFLoadHistory.1
Dictionary error: Value for key 'userprofile' in dictionary 'context' missing (expected a variant of type 9)
Error:5B - Object variable or With block variable not setGetContent returned no Ads.

↑ Back to the top


Cause

The Content Selection object can take a User Profile as an optional parameter. This error occurs because the profile is passed as a Dictionary object rather than as a Profile object, and the LoadHistory and SaveHistory components of the Advertising pipeline are set to load and save the history from and to a Profile object.

↑ Back to the top


Resolution

If a Profile object is going to be passed to the Content Selection object, set the LoadHistory component to load the history from a User Profile object and the SaveHistory component to save the history to a User Profile object as follows:
  1. Open the Commerce Server Pipeline Editor.
  2. Open the Advertising pipeline, named Advertising.pcf, for your Web site.
  3. In the Load Context stage, double-click LoadHistory.
  4. On the Load History tab, select the User Profile Object radio button, and then click OK.
  5. In the Load Context stage, double-click SaveHistory.
  6. On the Save History tab, select the User Profile Object radio button, and then click OK.
  7. Click Save to save the changes to the pipeline.
  8. At a command prompt, type the following command:
    IISRESET

↑ Back to the top


Keywords: kbprb, kbpending, KB275734

↑ Back to the top

Article Info
Article ID : 275734
Revision : 2
Created on : 10/18/2002
Published on : 10/18/2002
Exists online : False
Views : 295