Posted: 2014-01-20 11:19
Dear Sir or Maddam,
I'm using the .NET assembly in Powershellscript to exchange files between a Windows Server 2008R2 an 2 Unix machines via SCP/SFTP.
First I get the files from a Unix machine to W2k8R2 via SCP. Later they will be putted on a HP-UX machine via SFTP.
If I run the script manually, the script completes without any errors. If I run the script via Scheduled Tasks (The local admin is defined to run the task), a error will be created in Event Viewers Queue "Application" -look for Error below-.
In both cases, the filetransfer works great, so I don't know why the error is shown.
Source: Application Error
Name der fehlerhaften Anwendung: winscp.exe, Version: 220.127.116.1139, Zeitstempel: 0x00000000
Name des fehlerhaften Moduls: winscp.exe, Version: 18.104.22.16839, Zeitstempel: 0x00000000
ID des fehlerhaften Prozesses: 0xb88
Startzeit der fehlerhaften Anwendung: 0x01cf141a050e0306
Pfad der fehlerhaften Anwendung: C:\Program Files\WinSCP\winscp.exe
Pfad des fehlerhaften Moduls: C:\Program Files\WinSCP\winscp.exe
I didn't found any troubleshooting information. It would be great, if I get help asap.
Location: Prague, Czechia
Thanks for your report.
I have sent you an email with a debug version of WinSCP to address you have used to register on this forum.
Posted: 2014-01-20 12:02
The problem is solved
In the script, I've opened the connection some times, but I've not closed the session.
In TaskManager WinSCP.exe is running many times.
I dispose the session now at the end of the script and anything works great.
Martin, thanks for your fast reply.
You can post new topics in this forum
And it's free!