Topic "WinSCP on Windows Server 2012 R2"

Author Message
rlam

Guest


I am getting a Automation Error running the code (VBA) that I previously used on Windows 7. Is it not compatible with Win Server 2012 R2?

Thank you,
Ronny
Advertisements
Guest




anyone? Need some help. Don't know how to make this work on Win Server 2012 R2.

Thank you
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26331
Location: Prague, Czechia
Did you register the assembly for COM on the new system?
https://winscp.net/eng/docs/library_install#registering
rlam

Guest


I did register, no error during registration, "C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe WINSCPnet.DLL /codebase /tlb "
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26331
Location: Prague, Czechia
Did you register the assembly even for 64-bit (if the system is 64-bit)?
_________________
Martin Prikryl
rlam

Guest


Pretty sure I did it right, I used...
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe WINSCPnet.DLL /codebase /tlb

Do I have to use a different DLL, is there a 64bit dll I need to use.

Thank you,
Ronny
rlam

Guest


If I register with 64bit, I get a ActiveX error, if I register 32bit, I get an automation error.

Still nothing.
rlam

Guest


on windows 7 I can find a entry here

HKEY_USERS\...Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU

but not in Windows server 2012 R12.

In Windows Server 2012 R2 the only entry is here...
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Record\...\CodeBase

thank you,
Ronny
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26331
Location: Prague, Czechia
What is the application (Excel or what) that you run your VBA code in? 32-bit or 64-bit?

So you see WinSCP in references list?

Didn't you register the assembly (different version or different path) previously on the machine? Duplicate registrations break it.
See https://winscp.net/eng/docs/library_install#side-by-side
rlam

Guest


I am running this on Access 32bit.
Yes I can see the reference in the list.

I did probably register multiple times on different paths. Let me see if I can get rid of them and do this again.

Thank you,

Ronny
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License