Run winscp from IIS7.5 vbscript Active Server Pages

Advertisement

Michael_P
Guest

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

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

Reply with quote

Advertisement

You can post new topics in this forum