C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe "L:\Shared_Softwares\WinSCP\WinSCPnet.dll" /codebase /tlb:WinSCPnet32.tlb
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe "L:\Shared_Softwares\WinSCP\WinSCPnet.dll" /codebase /tlb:WinSCPnet64.tlb
I tested my code on my personal computer and it works. But I got the error message when I tried to run the WSF file in the server:
"could not create object named "WINSCP.SessionOptions".
If I unregister the WinSCPnet.dll, I will get a different error message:
"Cannot find the type library for this reference : WinSCP.Session"
Which means before unregistered,WinSCPnet.dll did be registered.
Could anyone help with this? I see several similar threads post, but none of them are resolved.