-
PaulTakla
Guest
Automation error in v5.13.14
Advertisement
I have been using the .NET assembly registered for COM for several years. After updating the version to v5.13.4, I get an "Automation Error" in VBA if using early binding, or an "ActiveX control can't create object" error when using late binding. I am using 32-bit office and have registered the component in both 32 and 64 bit forms, and both give the same result. I have used the version 4.0.30319 RegAsm.exe. Does anyone have any ideas what the issue might be and how to resolve it?
Advertisement
-
martin◆
Site Admin - Joined:
- Posts:
- 41,440
- Location:
- Prague, Czechia
Re: Automation error in v5.13.14
Try unregistering all versions (including the old one) and re-register the new one again.
-
reyemenork
Guest
I'm also having the same issue, curious if you came up with anything? I've tried un-registering and re-registering, and registering on a fresh install of windows 10. Get the same error.
-
martin◆
Site Admin - Joined:
- Posts:
- 41,440
- Location:
- Prague, Czechia
So did you ever made it working?I'm also having the same issue, curious if you came up with anything? I've tried un-registering and re-registering, and registering on a fresh install of windows 10. Get the same error.
What exactly did you do on the fresh install of Windows 10?
How exactly are you loading and using the assembly?
-
reyemenork
Guest
Still haven't got it working. This is the code I used to register:
This registers successfully, and I can add the tlb file in references in VBA. I'm using this in Access VBA. like this:
Early binding gives the automation error, late binding the active-x error.
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe %LDIR_WinSCP%\WinSCPnet.dll /codebase /tlb:WinSCPnet32.tlb
'Set pSession = New WinSCPnet.Session 'Set pSessionOptions = New WinSCPnet.SessionOptions Set pSession = CreateObject("WinSCP.Session") Set pSessionOptions = CreateObject("WinSCP.SessionOptions")
Advertisement
-
martin◆
Site Admin
Do you have 32-bit or 64-bit installation of Access?
-
reyemenork
Guest
It's 32 bit.
-
reyemenork
Guest
5.14 Beta works.
- hans.wirz@xmv.ch
- Joined:
- Posts:
- 2
Re: Automation error in v5.13.14
What if "all versions" .dll not available anymore or not kwowing what versions have been registered at all? Is there a way to "clean up everything"?Try unregistering all versions (including the old one) and re-register the new one again.
I had the same problem with older version, didn't get it running.
Please help
Advertisement
-
martin◆
Site Admin - Joined:
- Posts:
- 41,440
- Location:
- Prague, Czechia
Re: Automation error in v5.13.14
This issue has been added to the tracker:What if "all versions" .dll not available anymore or not kwowing what versions have been registered at all? Is there a way to "clean up everything"?
I had the same problem with older version, didn't get it running.
Please help
https://winscp.net/tracker/1706
I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.
- gwsftp
- Joined:
- Posts:
- 1
automation error on Win10 64 bit
5.14 Beta works.
I have the same issue (automation error) on some PC with Win10 64 bit... I've downloaded 5.14 beta and still issues.
How can I do?
-
martin◆
Site Admin - Joined:
- Posts:
- 41,440
- Location:
- Prague, Czechia
Re: automation error on Win10 64 bit
We need to know more. There are several separate problems described in this thread. Was it ever working on those PCs? What did you do to register the assembly? How are you using the assembly? Please start a new thread for your problem.I have the same issue (automation error) on some PC with Win10 64 bit... I've downloaded 5.14 beta and still issues.
How can I do?
Advertisement
You can post new topics in this forum