Background. When trying to create new or modify existing maintenance plans in Microsoft SQL 2005 SQL Server Management Studio you may get the error “Unable to cast COM object of type ‘Microsoft.SqlServer.Dts.Runtime.Wrapper.PackageNeutralClass’ to interface type Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer90'. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{8BDFE892-E9D8-4D23-9739-DA807BCDC2AC}’ failed due to the following error: Library not registered. (Exception from HRESULT: 0×8002801D (TYPE_E_LIBNOTREGISTERED)). (Microsoft.SqlServer.ManagedDTS)”
Cause: This error may indicate that you have serious problems with your Microsoft SQL Server 2005 installation, but as the error message says this error often is caused by a type library not is installed. (Not registered.) (dts.dll)
Solution: Re-register the dts.dll file. On the server, open a command prompt and type: regsvr32 dts.dll
This worked for me!!