Error trying to register dll for COM
My apologies for the double post, so mods please feel free to delete
https://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.
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.
This produced the error.
Am I missing something here??? This should be the easy part LOL.
FYI Tried renaming the dll to winscpnet.dll, but same error.
https://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.
%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)
FYI Tried renaming the dll to winscpnet.dll, but same error.