SSIS script task using WinSCP error
Hi,
I have developed an SSIS package in BIDS 2008 R2, which works great from the machine I developed it on. However, when I moved the package to the server, I get the following error:
Download Archives,,,6/5/2014 9:15:59 AM,6/5/2014 9:15:59 AM,1,0x,System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'WinSCPnet, Version=1.1.4.3970, Culture=neutral, PublicKeyToken=2271ec4a3c56d0bf' or one of its dependencies. The system cannot find the file specified.
File name: 'WinSCPnet, Version=1.1.4.3970, Culture=neutral, PublicKeyToken=2271ec4a3c56d0bf'
at ST_ce65898ba1554af38f9ffa906d6d024a.csproj.ScriptMain.Main()
I have added the WinSCPnet.dll to the following folders:
- C:\Program Files\Microsoft SQL Server\100\DTS\Binn
- C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies
I have also registered the assembly, using the following command:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe WinSCP.dll /codebase /tlb and it created the type library WinSCPnet.tlb in the \\prddsspm001\c$\Program Files\Microsoft SQL Server\100\DTS\Binn folder
I have also added the path to the environment variables!
No luck with any of the above corrections. Any help in this regard would be highly appreciated.
Thanks in advance!
Nick.
I have developed an SSIS package in BIDS 2008 R2, which works great from the machine I developed it on. However, when I moved the package to the server, I get the following error:
Download Archives,,,6/5/2014 9:15:59 AM,6/5/2014 9:15:59 AM,1,0x,System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'WinSCPnet, Version=1.1.4.3970, Culture=neutral, PublicKeyToken=2271ec4a3c56d0bf' or one of its dependencies. The system cannot find the file specified.
File name: 'WinSCPnet, Version=1.1.4.3970, Culture=neutral, PublicKeyToken=2271ec4a3c56d0bf'
at ST_ce65898ba1554af38f9ffa906d6d024a.csproj.ScriptMain.Main()
I have added the WinSCPnet.dll to the following folders:
- C:\Program Files\Microsoft SQL Server\100\DTS\Binn
- C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies
I have also registered the assembly, using the following command:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe WinSCP.dll /codebase /tlb and it created the type library WinSCPnet.tlb in the \\prddsspm001\c$\Program Files\Microsoft SQL Server\100\DTS\Binn folder
I have also added the path to the environment variables!
No luck with any of the above corrections. Any help in this regard would be highly appreciated.
Thanks in advance!
Nick.