FTP Uri doesn't work

3 posts, 0 answers
  1. Alfredo
    Alfredo avatar
    3 posts
    Member since:
    Dec 2013

    Posted 07 Nov 2014 Link to this post

    Hi.
    I am working in a solution that cosume .tdrx reports which are hosted in a FTP server, but when I pass the Uri to the ReportSource of the ReportViewer, I get this error: "Invalid URI: Invalid port specified."

    I have tried adding the port number in the Uri String, but still getting the same error.
    I also tried adding a parameter to the UriReportSource, but still getting the same.

    Which is the right way to do this?
  2. Alfredo
    Alfredo avatar
    3 posts
    Member since:
    Dec 2013

    Posted 07 Nov 2014 Link to this post

  3. DevCraft banner
  4. KS
    KS avatar
    165 posts
    Member since:
    Oct 2012

    Posted 12 Nov 2014 in reply to Alfredo Link to this post

    Hi,

    Try the URI in code and make an FtpWebRequest to get the file like here - FtpWebRequest. And if the URI contains special symbols they have to be escaped - System.Uri can't parse when password field contains a “#”.

    -KS
Back to Top