Topic "Error trying to register dll for COM"

Author Message
bah12
[View user's profile]

Joined: 2013-06-14
Posts: 2
My apologies for the double post, so mods please feel free to delete
http://winscp.net/forum/viewtopic.php?t=12550

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.
Code:
%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.
Code:
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe WinSCP.dll /codebase /tlb



This produced the error.

Code:
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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
As mentioned in the post, this is duplicate:
http://winscp.net/forum/viewtopic.php?t=12550
_________________
Martin Prikryl
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