Automation error in v5.13.14

Advertisement

PaulTakla
Guest

Automation error in v5.13.14

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?

Reply with quote

Advertisement

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

reyemenork wrote:

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.
So did you ever made it working?
What exactly did you do on the fresh install of Windows 10?
How exactly are you loading and using the assembly?

Reply with quote

reyemenork
Guest

Still haven't got it working. This is the code I used to register:
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe %LDIR_WinSCP%\WinSCPnet.dll /codebase /tlb:WinSCPnet32.tlb
This registers successfully, and I can add the tlb file in references in VBA. I'm using this in Access VBA. like this:
'Set pSession = New WinSCPnet.Session
'Set pSessionOptions = New WinSCPnet.SessionOptions
Set pSession = CreateObject("WinSCP.Session")
Set pSessionOptions = CreateObject("WinSCP.SessionOptions")
Early binding gives the automation error, late binding the active-x error.

Reply with quote

Advertisement

hans.wirz@xmv.ch
Joined:
Posts:
2

Re: Automation error in v5.13.14

martin wrote:

Try unregistering all versions (including the old one) and re-register the new one again.
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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Re: Automation error in v5.13.14

hans.wirz@xmv.ch wrote:

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
This issue has been added to the tracker:
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.

Reply with quote

gwsftp
Joined:
Posts:
1

automation error on Win10 64 bit

reyemenork wrote:

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?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Re: automation error on Win10 64 bit

gwsftp wrote:

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?
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.

Reply with quote

Advertisement

You can post new topics in this forum