Creating dynamic SSIS package [Object model] and using OleDBSource & OleDBDestination internally fails in SSIS 2016

  Issue: While dynamically creating SSIS packages using the object model and referencing the following SSIS libraries, you may receive the following exception thrown SSIS Libraries referenced: C:\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies\ SqlServer.DTSPipelineWrap.dll SQLServer.ManagedDTS.dll SQLServer.DTSRuntimeWrap.dll    Error Message: System.Runtime.InteropServices.COMException’ occurred in ConsoleApplication1.exe Additional information: Exception from HRESULT: 0xC0048021 {“Exception from HRESULT: 0xC0048021”}    at Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSDesigntimeComponent100.ProvideComponentProperties()…