| Matthew 2004-07-30, 5:49 pm |
| 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?
|