Hi,
I have made the connection to SFTP server using SftpClient class successfully.
I am trying to execute below syntax,
sftpclient.DownloadFile(_localFileName, fs, null);
where fs is my File string object of System.IO.FileStream().
But i am getting below error:
Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeException: DownloadFile is not a member of SftpClient
at Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.GetMethodInfo(ClrBridgeImpl* , Type pType, Char* pszMethodName, Type[] argumentTypes)
at Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.InvokeClrInstanceMethod(ClrBridgeImpl* , ObjectWrapper* objectWrapper, Char* pszMethodName, Int32 argsLength, ObjectWrapper** arguments, Boolean* argsAreByRef, Boolean* isException)
Kindly help.
regards,
I have made the connection to SFTP server using SftpClient class successfully.
I am trying to execute below syntax,
sftpclient.DownloadFile(_localFileName, fs, null);
where fs is my File string object of System.IO.FileStream().
But i am getting below error:
Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeException: DownloadFile is not a member of SftpClient
at Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.GetMethodInfo(ClrBridgeImpl* , Type pType, Char* pszMethodName, Type[] argumentTypes)
at Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.InvokeClrInstanceMethod(ClrBridgeImpl* , ObjectWrapper* objectWrapper, Char* pszMethodName, Int32 argsLength, ObjectWrapper** arguments, Boolean* argsAreByRef, Boolean* isException)
Kindly help.
regards,