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

hiteshpal

Solved

Delete the .exe file and re run it again

Mine is worked
martin

Re: Solved -- Re: the specified executable is not a valid application for this OS platform

@varunswarup0: I'd guess that @seanfaria was referring to Session.ExecutablePath:
https://winscp.net/eng/docs/library_session#executablepath
Though I'm not sure how it can help in this case.
varunswarup0

Re: Solved -- Re: the specified executable is not a valid application for this OS platform

@seanfaria: Please tell how to specify executable path.
seanfaria

Solved -- Re: the specified executable is not a valid application for this OS platform

I figured it out. This happened because I did not specify the executable path.

Thank you for your help!!
martin

Re: the specified executable is not a valid application for this OS platform

And what is your "OS platform"?

Please attach a full debug log file showing the problem (using the latest version of WinSCP).

To generate the debug log file, set Session.DebugLogPath. Submit the log with your post as an attachment. If you do not want to post the log publicly, you can mark the attachment as private.
seanfaria

the specified executable is not a valid application for this OS platform

Exception calling "Open" with "1" argument(s): "The specified executable is not a valid application for this OS platform."
At line:1 char:12
+ $session.Open($sessionOptions)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : Win32Exception

Could you please advise on why I would receive this error?