Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Exception from HRESULT: 0xC0048021

$
0
0
0 down vote favorite I am trying to implement a custom data flow component in my managed code. Here is my custom data flow component: [DtsPipelineComponent(DisplayName = "RenameComponent", ComponentType = ComponentType.Transform)] public class MapperComponent : PipelineComponent { List<idtsvirtualinputcolumn100>dontMapList; public override void ProvideComponentProperties() { base.ProvideComponentProperties(); base.RemoveAllInputsOutputsAndCustomProperties(); IDTSInput100 input = ComponentMetaData.InputCollection.New(); input.Name = "Input"; IDTSOutput100 output = ComponentMetaData.OutputCollection.New(); output.Name = "Output"; output.SynchronousInputID = input.ID; // Make the output asynchronous output.SynchronousInputID = 0; FindOldColumns(input); } } I compile that, register it with the gac, and save it to the C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents directory. I then run the following code to add the component to my data flow task: private static IDTSComponentMetaData100 CreateRenameTransformation(MainPipe dataFlow, Train train) { IDTSComponentMetaData100 renameTransformation = dataFlow.ComponentMetaDataCollection.New(); // Set stock properties renameTransformation.ComponentClassID = "Dexter.CustomComponents.MapperComponent"; renameTransformation.Name = "RenameTransformation"; renameTransformation.Description = "Rename and remove incompatible columns"; CManagedComponentWrapper instance = renameTransformation.Instantiate(); instance.ProvideComponentProperties(); return renameTransformation as IDTSComponentMetaData100; } During runtime (when i try to create the pacakge), I get the following error: 0xC0048021 -1073446879 DTS_E_ERRORCOMPONENT The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "%1". Thanks,</idtsvirtualinputcolumn100>

-DF


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>