Topic "RegAsm WinSCP.dll : Could not load file or assembly"

Author Message
2-buck
[View user's profile]

Joined: 2012-10-23
Posts: 2
What am I doing wrong? I'd like to automate WinSCP through a VBScript or Excel. I can't get the dll to register. I followed the instructions in http://winscp.net/eng/docs/library_install#registering

(1) I have windows 7.
(2) I have WinSCP 5.1.0 build 2625 installed and working fine.
(3) I downloaded winscp510automation.zip.
(4) I unzipped it to the same folder as the exe.
(5) I opened a command prompt with administrative privileges.
(6) I checked the windows directory and framework version.
(7) I ran it as you see below.

C:\Program Files\WinSCP>C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe WinSCP.dll /codebase /tlb
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\WinSCP\WinSCP.dll' or one of its dependencies. Operation is not supported. (Ex
ception from HRESULT: 0x80131515)
Advertisements
2-buck
[View user's profile]

Joined: 2012-10-23
Posts: 2
BUMP

I also tried logging in as admin instead of just using an admin command prompt. Still didn't work.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
No idea. I googled for the error and all references to the error are for registering an assembly from a network. What does not seem to be your case.
Anyway, try this:
http://iknown.blogspot.com/2011/06/regasm-error-ra0000-could-not-load-file.html
bl4met
[View user's profile]

Joined: 2012-10-22
Posts: 3
Location: Iowa
I was gettig the same error yesterday, I was able to fix it with the RegAsm config hack.
ricpage
[View user's profile]

Joined: 2013-08-23
Posts: 1
Location: UK
Habe you tried the full path structure

%WINDIR%\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe "C:\Program Files (x86)\WinSCP\WinSCP.dll" /codebase /tlb
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
bl4met wrote:
I was able to fix it with the RegAsm config hack.

What is "RegAsm config hack"?
_________________
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