Sunday, April 27, 2014

Unable to cast COM object of type 'System.__ComObject' to class type 'Microsoft.SqlServer.Dts.Tasks.ExecuteSQLTask.ExecuteSQLTask'. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface.

Problem

Got this error when trying to use ExecuteSQLTask dll programmatically in .NET solution.

Solution


  


  

No comments:

Post a Comment