Houssam Ballout
asked on
Application connecting to FTP Client Issue
Hello,
I am working on a C# application which connects to FTP client to upload and download files to and from the FTP server.
When I run the application, I receive "COMException occured" error. Error HRESULT E_Fail has been returned from a call to a COM component. The error code is -2147467259.
Here the code where the error occured:
try
{
int connStat = transferEngineConnection.C onnect();
transferEngineConnection.s et_Option( "CleanupAs ync", 1);
transferEngineConnection.s et_Option( "ThrowErro r ", 1);
transferEngineConnection.s et_Option( "AutoClose Method ", 1);
transferEngineConnection.s et_Option( "AutoClose Delay ", 1);
logger.Info("Connection Status returned: " + connStat.ToString());
return true;
}
catch(Exception ex)
{
logger.Info("Connect Call Failed for CuteFTP " + ex.Message + ex.StackTrace);
return false;
}
__________________________ __________ __________ __________ __________ __________ __________ __________ __________
System.Runtime.InteropServ ices.COMEx ception occurred
Message="Error HRESULT E_FAIL has been returned from a call to a COM component."
Source="Interop.CuteFTPPro "
ErrorCode=-2147467259
StackTrace:
at CuteFTPPro.TEConnectionCla ss.Connect ()
at NCR.ICCSGateway.Connection Manager.Co nnect(TECo nnection transferEngineConnection, String userName, String password, String server, String port, String localPath, String remotePath) in D:\NCR.ICCS.Gateway\NCR.IC CS.Gateway .SourceCod e\ICCS_Gat eway\ICCS_ TransferGa teway_Comp onent\ICCS _Gateway_U serInterfa ce\Connect ionManager .cs:line 500
InnerException:
I am using CuteFTP 8 professional.
Thanks
I am working on a C# application which connects to FTP client to upload and download files to and from the FTP server.
When I run the application, I receive "COMException occured" error. Error HRESULT E_Fail has been returned from a call to a COM component. The error code is -2147467259.
Here the code where the error occured:
try
{
int connStat = transferEngineConnection.C
transferEngineConnection.s
transferEngineConnection.s
transferEngineConnection.s
transferEngineConnection.s
logger.Info("Connection Status returned: " + connStat.ToString());
return true;
}
catch(Exception ex)
{
logger.Info("Connect Call Failed for CuteFTP " + ex.Message + ex.StackTrace);
return false;
}
__________________________
System.Runtime.InteropServ
Message="Error HRESULT E_FAIL has been returned from a call to a COM component."
Source="Interop.CuteFTPPro
ErrorCode=-2147467259
StackTrace:
at CuteFTPPro.TEConnectionCla
at NCR.ICCSGateway.Connection
InnerException:
I am using CuteFTP 8 professional.
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.