Exception from HRESULT: 0xC0048021
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
July 16th, 2012 1:12pm

Hi Gaurav_X, The error 0xC0048021 means that the component is not installed basically, the ComponentClassID you are using is not right as you suspect, please refer to the componentClassId for Integration Services: http://sqlblogcasts.com/blogs/simons/archive/2007/01/05/ComponentClassId-for-Integration-Services.aspx And here is a similar thread, please refer to: http://social.msdn.microsoft.com/forums/en-US/sqlintegrationservices/thread/46bdf95f-5f15-4f2f-af7c-09f506aa4e6d/ Thanks, Eileen TechNet Subscriber Support If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Free Windows Admin Tool Kit Click here and download it now
July 17th, 2012 6:39am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics