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

No, I do not have any idea.
aput

Hi Martin,
Here is a 3rd report of a user that is pretty sure WinSCP triggers a .NET 3.5 install.
And on another OS (WIN10, Windows Server 2008R2, Windows Server 2016).
Do you have any clue?
It is not a bug, I just find it strange.
Andre
Sylvie

Re: Could not create WinSCP.SessionOptions

aput wrote:

I see this thread was never finalized, so for what it is worth:
I get that same Windows prompt (to install .NET 3.5) on my clean WIN10 install, the first time I want to use the .NET assembly.

Andre


Hi Andre,

I faced the same issue on a Windows 2016 server having .net Framework 4.6 installed but no .Net Framework 3.5
Activating .Net Framework 3.5 solved my issue!
Tkx for the tip!

Sylvie
aput

I see this thread was never finalized, so for what it is worth:
I get that same Windows prompt (to install .NET 3.5) on my clean WIN10 install, the first time I want to use the .NET assembly.

Andre
silviab2

Could not create WinSCP.SessionOptions

Hi,
I have a vbscript that given the remote path, the local path, a start date and a end date, downloads all the file in the remote path updated between the two dates. Running it on a server with OS Windows Server 2008 R 2 Datacenter, it works perfectly, but when I run it on another server with OS Windows Server 2012 R2 Standard, I got the following error:
WScript.CreateObject: Could not create object named "WinSCP.SessionOptions"

Also a pop up windows opens that says:
The following feature couldn't be installed:
.NET Framework 3.5 (includes .NET 2.0 and 3.0)

However, on this server there is already .NET Framework 4.5, so why it seems that it needs version 3.5? Also, in the old server there is only version 4 and there are no problems there.
Do I have to use different commands with version 4.5 of .NET? Or is it mandatory to download the older version?
Below there's the code of the script.
Thanks
Silvia
<job>

<reference object="WinSCP.Session"/>
<script language="VBScript">
Option Explicit
' Check and read input arguments
Dim numArgs
numArgs = WScript.Arguments.Count
If numArgs < 2 Then
  WScript.Echo "Usage: /DINI:<Now> /DFIN:<Now> /R_PATH:<remote-path> /L_PATH:<local-path>"
  WScript.Quit ( 1 )
End If

Dim valArgs
Set valArgs = WScript.Arguments.Named
If Not ( valArgs.Exists( "R_PATH" ) ) And Not ( valArgs.Exists( "L_PATH" ) ) Then
  WScript.Echo "Usage: /DINI:<Now> /DFIN:<Now> /R_PATH:<remote-path> /L_PATH:<local-path>"
  WScript.Quit ( 2 )
End If

Dim vRemotePath, vLocalePath,vHost,vUser,vPsw
vRemotePath = valArgs.Item( "R_PATH" )
vLocalePath = valArgs.Item( "L_PATH" )
vHost=valArgs.Item( "Host" )