I
I
Ilya Chernikov2014-10-08 18:49:57
FTP
Ilya Chernikov, 2014-10-08 18:49:57

C#. invalid uri, expected port due to colon, what to do?

I am uploading a file to an FTP server using WebClient. I initialize the Uri according to the scheme " ftp://Login:[email protected] " . But for some reason he thinks that after (":") it is necessary to enter the port. How to be in such a situation? Is there a better way to upload a file to ftp?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sumor, 2014-10-08
@Tuerer

Example from MSDN

I
Ilya Chernikov, 2014-10-08
@Tuerer

Yes everything, thank you. It needed " ftp://Login:[email protected]:PORT ". But I did through Uri Bilder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question