rlam Guest WinSCP on Windows Server 2012 R2 2017-06-01 12:50 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 Reply with quote
Guest 2017-06-01 21:07 anyone? Need some help. Don't know how to make this work on Win Server 2012 R2. Thank you Reply with quote
martin◆ Site Admin Joined: 2002-12-10 Posts: 41,390 Location: Prague, Czechia Re: WinSCP on Windows Server 2012 R2 2017-06-05 Did you register the assembly for COM on the new system? https://winscp.net/eng/docs/library_install#registering Reply with quote
rlam Guest 2017-06-05 13:31 I did register, no error during registration, "C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe WINSCPnet.DLL /codebase /tlb " Reply with quote
martin◆ Site Admin 2017-06-05 Did you register the assembly even for 64-bit (if the system is 64-bit)? Reply with quote
rlam Guest 2017-06-06 15:19 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 Reply with quote
rlam Guest 2017-06-06 18:26 If I register with 64bit, I get a ActiveX error, if I register 32bit, I get an automation error. Still nothing. Reply with quote
rlam Guest 2017-06-07 17:19 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 Reply with quote
martin◆ Site Admin Joined: 2002-12-10 Posts: 41,390 Location: Prague, Czechia 2017-06-08 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 Reply with quote
rlam Guest 2017-06-09 12:57 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 Reply with quote