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