Topic "Error trying to register dll for COM"

Author Message
[View user's profile]

Joined: 2013-06-14
Posts: 2
My apologies for the double post, so mods please feel free to delete

I'm at a standstill in my automation testing until I get around this error so I'm moving this to support.

I'd like to do some testing with a vbs script, however I'm having issues getting off the starting block. I downloaded the DLL (latest version todate 5.1.5 and same as my winscp install).

Per the instructions I try to run from the install folder C:\Program Files (x86)\WinSCP where the DLL is.
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe WinSCPnet.dll /codebase /tlb

First it gives and error WinSCPnet.dll cannot be found. Well that is probably just a bug in the instructions since the downloaded zip file only contains a file called winscp.dll (no net in the file name).

So I modifed the code to read.
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe WinSCP.dll /codebase /tlb

This produced the error.

Microsoft (R) .NET Framework Assembly Registration Utility 4.0.30319.1
Copyright (C) Microsoft Corporation 1998-2004.  All rights reserved.

RegAsm : error RA0000 : Could not load file or assembly 'file:///C:\Program File
s (x86)\WinSCP\WinSCP.dll' or one of its dependencies. Operation is not supporte
d. (Exception from HRESULT: 0x80131515)

Am I missing something here??? This should be the easy part LOL.

FYI Tried renaming the dll to winscpnet.dll, but same error.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
As mentioned in the post, this is duplicate:
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License