Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.7k views
in .NET FTP by (120 points)
Hai

I am uploading a file and it gives the following error
"Value can not be null Parameter Name: filename"

I used the following code

FtpConnection1.ServerAddress = ServerTextBox.Text
FtpConnection1.ServerPort = Integer.Parse(PortTextBox.Text)
FtpConnection1.UserName = UserTextBox.Text
FtpConnection1.Password = PasswordTextBox.Text

FtpConnection1.Connect()
FtpConnection1.TransferType = EnterpriseDT.Net.Ftp.FTPTransferType.ASCII
FtpConnection1.UploadFile("C:\Trial Images\joseph.txt", "jjnew.txt")
FtpConnection1.Close()

Please help me

Thanks in advance for the answer

Regards

Joseph

1 Answer

0 votes
by (162k points)
Got any more details on the error, or can you produce a log file or stack trace?

Hai

I am uploading a file and it gives the following error
"Value can not be null Parameter Name: filename"

Categories

...