This is a migrated thread and some comments may be shown as answers.

FTP Uri doesn't work

2 Answers 118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alfredo
Top achievements
Rank 1
Alfredo asked on 07 Nov 2014, 10:39 PM
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 Answers, 1 is accepted

Sort by
0
Alfredo
Top achievements
Rank 1
answered on 07 Nov 2014, 10:40 PM
0
KS
Top achievements
Rank 1
answered on 12 Nov 2014, 04:13 PM
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
Tags
General Discussions
Asked by
Alfredo
Top achievements
Rank 1
Answers by
Alfredo
Top achievements
Rank 1
KS
Top achievements
Rank 1
Share this question
or