Now when i try to run the code I get an error 429 "ActiveX component can't create object" when i try to run it. I'm running WinSCP 5.1 with the same .Net assembly/COM Lib. getting it registered was a pain but I was able to gt that done after modifying the RegAsm.exe.config to allow for network installations even though it was a local install. Am I just missing the the .NET/COM doesn't work on 64 bit systems or am i just missing something stupid?
This is the code where it breaks:
Dim MySession As New Session Dim MySessionOptions As New SessionOptions With MySessionOptions .Protocol = Protocol_Ftp .FtpSecure = FtpSecure_Implicit .HostName = "xxx.xxx.xxx.xxx" .UserName = "xxx" .Password = "xxx" .portnumber = 990 .sslhostcertificatefingerprint = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" End With MySession.Open MySessionOptions
It lets me declare the variable and and it stops with the "With MySessionOptions" I have the .NET/COM listed in references and even tried WinSCP.Session and WinSCP.SessionOptions without success. It could possibly be a office 2010 and/or 64bit issue that I'm missing. I'm looking into that as well but was wondering if anyone else has run into anything like that.
Any help will be greatly appreceated