Initialize fails on UPnPNATManager
Posted 08 June 2010 - 12:19 PM
I am using the sample vb.net code and when I run it fails on the Initialize method call as below.
Dim objUPnP As sfFTPLib.UPnPNATManager
objUPnP = New sfFTPLib.UPnPNATManager
The stack trace is below. If someone could offer some wisdom as to why this is happening I'd greatly appreciate it.
System.Runtime.InteropServices.COMException was unhandled
Message=Error HRESULT E_FAIL has been returned from a call to a COM component.
at BTS.PC.FTP.Init() in C:\Users\dmatthews\Local Projects\BTS.PC.Importer\BTS.PC.FTP\FTP.vb:line 184
at BTS.PC.FTP.SecureFTP(Object sourceFTPDirectory) in C:\Users\dmatthews\Local Projects\BTS.PC.Importer\BTS.PC.FTP\FTP.vb:line 51
at BTS.PC.Importer.FTPSender.SendFile(Object sender, FileSystemEventArgs e) in C:\Users\dmatthews\Local Projects\BTS.PC.Importer\FTPSender\FTPSender.vb:line 130
at System.IO.FileSystemWatcher.OnCreated(FileSystemEventArgs e)
at System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(Int32 action, String name)
at System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
Posted 08 June 2010 - 12:20 PM
Posted 08 June 2010 - 01:01 PM
Thanks but when I ignore it I get an 'ftpErrorConnect' as LastError.
There is probably no UPnP capable device available. Catch the exception and ignore it.
I have set the Host, Port, Username and Password and I can ping the target Host.
Posted 08 June 2010 - 01:10 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users