Topic "Error: Could not create object named "WinsSCP.SessionOptions""

Author Message
mzognrah
[View user's profile]

Joined: 2015-07-30
Posts: 1
Location: omaha, ne
I am trying to download a file from a ftp server and I am getting below when I run the script.

Error: Could not create object named "WinsSCP.SessionOptions" @Set sessionOptions = WScript.CreateObject("WinSCP.SessionOptions")

--beginning of the script below until the error line--

<job>
<reference object="WinSCP.Session"/>
<script language="VBScript">

Option Explicit

' Setup session options
Dim sessionOptions
Set sessionOptions = WScript.CreateObject("WinSCP.SessionOptions")
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Did you register the WinSCP .NET assembly for COM?
http://winscp.net/eng/docs/library_install#registering
Guest




prikryl wrote:
Did you register the WinSCP .NET assembly for COM?
http://winscp.net/eng/docs/library_install#registering


I did register it
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Isn't there more information in the error message than you have posted?
Did you try to debug assembly loading with Fuslogvw.exe?
https://msdn.microsoft.com/en-us/library/e74a18c4.aspx
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License