Commerce Server General - Can't Add Custom Component to the Payment Pipeline

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > July 2004 > Can't Add Custom Component to the Payment Pipeline





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 Can't Add Custom Component to the Payment Pipeline
Ravi Shankar

2004-07-31, 2:46 am

For a COM component to work with the pipeline it MUST
implement all or some of these interfaces

IPipelineComponent (mandatory)
IPipelineComponentAdmin (mandatory)
IPipelineComponentDescription (mandatory)
ISpecifyPieplineComponentUI (optional if you're using
custom properties)
and a few more like IPersistDictionary etc

Check the help file for Commerce Server on Custom Pipeline
Components and you find all this information, code samples
and such.

Have fun !

>-----Original Message-----
>I recently created a custom pipeline component that I

need to add to
>the payment pipeline (payment.pcf). However when I try to

add the
>component to payment.pcf the pipeline editor gives me the

error
>message "Unable to create component, the following error

code was
>returned, 0x80050154".
>
>Here are the details of the component:
>
>using System;
>using System.IO;
>using System.Runtime.InteropServices;
>
>namespace PCTest
>{
> [GuidAttribute("D9A60945-DD23-4BC4-918A-33CFD9593753")]
> public class PaymentTest
> {
> public static void start()
> {
> StreamWriter sw = File.CreateText

(@"c:\temp\payment_test.txt");
> sw.WriteLine("Hi Mom");
> sw.Close();
> }
>
> public PaymentTest()
> {
> }
> }
>}
>
>- I use a GuidAttribute to avoid automatic guid

generation problems.
>- Register for COM Interop is set to "true"
>- Assembly is signed with a strong name
>
>
>I perform the following steps:
>
>1. Compile the assembly (PCTest.dll) on my local machine
>2. Copy the assembly to the development server (Windows

2003)
>3. Register the assembly on the development server - >

regasm
>/codebase PCTest.dll
>4. User PipeReg.exe to register the component, using

progid
>PCTest.PaymentTest, all stages, export and register
>5. Open payment.pcf with the pipeline editor, insert

component, select
>the PCTest.PaymentTest component
>6. ERROR - Unable to create component, the following

error code was
>returned, 0x80050154
>
>I've also tried regasm /tlb to create a type library

which I then
>browse to with PipeReg.exe, still get the same error. I

also tried
>installing the component in the global assembly cache

(gacutil -i
>PCTest.dll) before I PipeReg. Still get the same error.
>
>What am I doing wrong?
>.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com