SQL SSIS problem - Unable to cast Com object

I often get this error message on a simple step in my SSIS package - what does it mean and how can I solve it?

Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.SqlServer.Dts.Runtime.IObjectWithSite'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{FC4801A3-2BA9-11CF-A229-00AA003D7352}' 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)). (Microsoft Visual Studio)

------------------------------
Program Location:


Server stack trace:
   at Microsoft.SqlServer.Dts.Runtime.ComponentImpl.get_Site()
   at Microsoft.SqlServer.Dts.Runtime.DtsContainer.get_Site()
   at Microsoft.DataTransformationServices.Design.Undo.ComponentObjectId.GetObjectId(IComponent component)
   at Microsoft.SqlServer.IntegrationServices.Designer.Undo.PipelineSnapshot.GetSnapshotHelper(Object obj)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
   at System.Func`2.EndInvoke(IAsyncResult result)
   at Microsoft.DataTransformationServices.Design.DesignUtils.RunOnMtaThreadFunc[TArg1,TResult](Func`2 function, TArg1 arg1)
   at Microsoft.SqlServer.IntegrationServices.Designer.Undo.PipelineSnapshot.GetSnapshot(Object obj)
   at Microsoft.DataTransformationServices.Design.Undo.UndoController.GetFullSnapshot(Object obj)
   at Microsoft.DataTransformationServices.Design.Undo.UndoController.GetSnapshot(Object component, MemberDescriptor memberDescriptor)
   at Microsoft.DataTransformationServices.Design.Undo.UndoController.ObjectSnapshotManager.TrySaveSnapshot(MemberDescriptor memberDescriptor)
   at Microsoft.DataTransformationServices.Design.Undo.UndoController.SnapshotManager.TrySaveSnapshot(Object obj, MemberDescriptor memberDescriptor)
   at Microsoft.DataTransformationServices.Design.Undo.UndoController.OnComponentChanging(Object sender, ComponentChangingEventArgs e)
   at System.ComponentModel.Design.ComponentChangingEventHandler.Invoke(Object sender, ComponentChangingEventArgs e)
   at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IComponentChangeService.OnComponentChanging(Object component, MemberDescriptor member)
   at Microsoft.DataTransformationServices.Design.DtsComponentDesigner.StartComponentUI(Boolean startGenericUI)
Chris MichalczukConsultantAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vikas GargBusiness Intelligence DeveloperCommented:
To fix the problem do the following:

1.       Open the command prompt

2.       Navigate to C:\Program Files\Microsoft SQL Server\90\DTS\Binn

3.       Run C:\Program Files\Microsoft SQL Server\90\DTS\Binn>regsvr32 dts.dll

That should fix the problem.
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.