Unable to cast COM object of type 'System.__ComObject' to interface

TITLE: Microsoft Visual Studio
------------------------------
Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSObject100'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{203E24BD-5203-4C76-AFC7-7C8545EBA1A0}' failed due to the following error: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)).
------------------------------
BUTTONS:
OK
------------------------------

Solution:

1. Before starting, make sure you close any open Visual Studio instance.
2. Open command prompt and run as a administrator.
3. Navigate to bellow path
       C:\Program Files\Microsoft SQL Server\120\DTS\Binn\
where 120 is you SQL Server version number.
 

4. Reregister the dts.dll by executing the command: 
regsvr32 dts.dll
 
 

Comments

Post a Comment

Popular posts from this blog

Announcing – Embed your Power BI organizational apps in Microsoft Teams Channels and Meetings

Failed to execute the package or element. Build errors were encountered

Dataset refresh cancellation is now available in Power BI Premium