Content Selection Framework - Integrating Discount Manager :Error 0x80004005 Commerce.CSFInitPipeline Dictionary err

This is Interesting: Free IT Magazines  
Home > Archive > Content Selection Framework > December 2004 > Integrating Discount Manager :Error 0x80004005 Commerce.CSFInitPipeline Dictionary err





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Integrating Discount Manager :Error 0x80004005 Commerce.CSFInitPipeline Dictionary err
agindian

2004-12-23, 7:47 am

Hi,

I have instlled FP1. Added marketing resource,catelog and marketing
webservices to my site..

Then as instructed, i have edited web.config and changed the discount
cache from "discounts" to "MarketingDiscounts" so that I can use the
Discount Manager for processing discounts.

Then on the home page of my site, i tried to get the discount content by
using the follwing code
=======================
CommerceContext ctx = CommerceContext.Current;
Profile userProfile = null;
bool isLoggedOn = ctx.AuthenticationInfo.IsAuthenticated();

if (isLoggedOn)
{
// Extract the user's profile for the Campaign system to
// decide if the user should be targeted for a given ad.

userProfile = ctx.UserProfile;
}
//check for the profile


// Get the Discount

// Create a targeting profile

// ctx is still active

// Get a ContentSelector and set its properties
ContentSelector csoDiscount =
ctx.TargetingSystem.SelectionContexts["discounts"].GetSelector();
csoDiscount.TraceMode = true;
csoDiscount.ItemsRequested = 1;

if(null != userProfile)
{
csoDiscount.Profiles.Add("User", userProfile);
}


// Get the content using CS2002 Content Selection Framework
StringCollection discountPayload = csoDiscount.GetContent();
foreach (string discountItem in discountPayload)
{
discountLabel.Text = discountLabel.Text + discountItem.ToString() + "";
}
==================================

This works when i set the discount cache in web.config to "discounts". But
when i change it to "marketingDiscounts", it doesnt work and gives me the
following error

================
Component Execution failed for component[0x0] hr: 0x80004005 ProgID:
Commerce.CSFInitPipeline.1 Dictionary error: Value for key 'templates' in
dictionary 'Advertising cache' missing (expected a variant of type 9)
==============================

Could anybody please tell me whats wrong? I read in another related post
that there is a patch from MS for a similar issue. Is that the case here
also?

Or is it some configuration issue?

Thanks In Advance,
Geo

David Messner [MSFT]

2004-12-28, 5:49 pm

This is a well-documented limitation of FP1 - the "CSF Display" of
discounts is not supported when using the FP1 marketing system schema (the
schema for display properties and targeting information is not there).

Expect that to supported in Commerce Server 2006.

-djm
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2004 Microsoft Corporation. All rights
reserved.

--------------------
From: "agindian" <aniltom01@yahoo.com>
Newsgroups: microsoft.public.commerceserver.campaigns_csf
Subject: Integrating Discount Manager :Error 0x80004005
Commerce.CSFInitPipeline Dictionary error
Date: Thu, 23 Dec 2004 08:34:21 -0500
Organization: www.talkaboutsoftware.com
Message-ID:
< 7ea5211ae2a1edb483b3ebc0b7cb7978@localho
st.talkaboutsoftware.com>
X-Newsreader: www.talkaboutsoftware.com
Content-Type: text/plain;
X-Complaints-To: abuse@supernews.com
Lines: 71
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!new
sfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!news-i
n.ntli.net!newsrout1-win.ntli.net!ntli.net!sn-xit-03!sn-xit-11!sn-xit-12!sn-
xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.commerceserver.campaigns_csf:2934
X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf

Hi,

I have instlled FP1. Added marketing resource,catelog and marketing
webservices to my site..

Then as instructed, i have edited web.config and changed the discount
cache from "discounts" to "MarketingDiscounts" so that I can use the
Discount Manager for processing discounts.

Then on the home page of my site, i tried to get the discount content by
using the follwing code
=======================
CommerceContext ctx = CommerceContext.Current;
Profile userProfile = null;
bool isLoggedOn = ctx.AuthenticationInfo.IsAuthenticated();

if (isLoggedOn)
{
// Extract the user's profile for the Campaign system to
// decide if the user should be targeted for a given ad.

userProfile = ctx.UserProfile;
}
//check for the profile


// Get the Discount

// Create a targeting profile

// ctx is still active

// Get a ContentSelector and set its properties
ContentSelector csoDiscount =
ctx.TargetingSystem.SelectionContexts["discounts"].GetSelector();
csoDiscount.TraceMode = true;
csoDiscount.ItemsRequested = 1;

if(null != userProfile)
{
csoDiscount.Profiles.Add("User", userProfile);
}


// Get the content using CS2002 Content Selection Framework
StringCollection discountPayload = csoDiscount.GetContent();
foreach (string discountItem in discountPayload)
{
discountLabel.Text = discountLabel.Text + discountItem.ToString() + "";
}
==================================

This works when i set the discount cache in web.config to "discounts". But
when i change it to "marketingDiscounts", it doesnt work and gives me the
following error

================
Component Execution failed for component[0x0] hr: 0x80004005 ProgID:
Commerce.CSFInitPipeline.1 Dictionary error: Value for key 'templates' in
dictionary 'Advertising cache' missing (expected a variant of type 9)
==============================

Could anybody please tell me whats wrong? I read in another related post
that there is a patch from MS for a similar issue. Is that the case here
also?

Or is it some configuration issue?

Thanks In Advance,
Geo


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com