I run ssis package from my asp.net application. When it's running on my local machine (32-bit OS), everything is working fine. but when I published my site on remote computer (64-bit OS) I was getting run-time error:
Could not load file or assembly 'Microsoft.SqlServer.ManagedDTS, Version=10.0.0.0,
Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot
find the file specified.
I put Microsoft.SqlServer.ManagedDTS.dll
and Microsoft.SqlServer.DTSRuntimeWrap.dll
into the bin folder of my web site.
After that I had the next error:
“An attempt was made to load a program with an incorrect format”
I turned on " Enable 32-Bit Applications" option on iis for application pool and changed platform target to x86 in the properties of a project.
And now I have the following error:
Retrieving the COM class factory for component with CLSID {BA785E28-3D7B-47AE-A4F9-4784F61B598A}
failed due to the following error: 80040154 Class not registered
(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Any ideas how to fix that? OR may be I'm moving in wrong direction? Any help is appreciated.