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

Hi User,
Thanks for visiting My Blog and please provide your valuable feedback and subscribe for more updates. Please don't post any spam content or comments.
Thank You

Popular Posts

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

Exception deserializing the package "The process cannot access the file because it is being used by another process."

Temporary enable and disable SSRS subscriptions