Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Run winscp from IIS7.5 vbscript Active Server Pages

You may need to use Use the Session.ExecutableProcessUserName and the Session.ExecutableProcessPassword to configure the local account to use for the WinSCP process.

Though in general, WinSCP .NET assembly is not the right tool to be used for web development.
https://winscp.net/eng/docs/library#purpose
Michael_P

Run winscp from IIS7.5 vbscript Active Server Pages

Hello,

I installed winscp as Administrator and registered it with sucessfully with
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe "c:\Program Files (x86)\WinSCP\WinSCPnet.dll" /codebase /tlb:WinSCPnet64.tlb

My code produces the following error:
WinSCPnet Fehler "80131500'
"WinSCP process terminated with exit code 0. There was no output. Response log file C:\Windows\TEMP\wscp0334.033C0D9D.tmp was not created. This could indicate lack of write permissions to the log folder or problems starting WinSCP itself." on session.open

Code
Dim sessionOptions
Set sessionOptions = Server.CreateObject("WinSCP.SessionOptions")
With sessionOptions
.Protocol = Protocol_Sftp
.HostName = myHostname
.UserName = mysername
.Password = myPassword
.GiveUpSecurityAndAcceptAnySshHostKey = true
End With

Dim session
Set session = Server.CreateObject("WinSCP.Session")

session.Open sessionOptions


If I set the directory:
session.DebugLogPath = myfileDirectory
session.SessionLogPath = myfileDirectory

mscorlib Fehler "80070005'
Der Zugriff auf den Pfad "D:\.." wurde verweigert.

Any Ideas?
Thanks,
Michael