(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)