Integrating Discount Manager :Error 0x80004005 Commerce.CSFInitPipeline Dictionary err
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Content Selection Framework > Integrating Discount Manager :Error 0x80004005 Commerce.CSFInitPipeline Dictionary err




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-23-04 12:47 PM

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






[ Post a follow-up to this message ]



    RE: Integrating Discount Manager :Error 0x80004005 Commerce.CSFInitPipeline Dictionary  
David Messner [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-28-04 10: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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:19 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register