Last post Mar 06, 2019 08:22 AM by Yuki Tao
Mar 04, 2019 03:06 PM|samirkarim|LINK
How can i use Http://servername/reports in this Example :
ReportViewer reportViewer = new ReportViewer();
reportViewer.ProcessingMode = ProcessingMode.Remote;
IReportServerCredentials irsc = new CustomReportCredentials("user", "pass", "domain");
reportViewer.ServerReport.ReportServerCredentials = irsc;
//reportViewer.ServerReport.ReportPath = "/"+ URLReport;
reportViewer.ServerReport.ReportServerUrl = new Uri("url"); <-- Here
ViewBag.ReportViewer = reportViewer;
Mar 04, 2019 03:12 PM|PatriceSc|LINK
Unclear. "url" is the url you actually want to use so it seems it should be just reportViewer.ServerReport.ReportServerUrl
Uri("http://servername/reports"); // ???
If this is some other problem please be explicit and tell us which kind of error or wrong behavior you see when your code runs...
Mar 04, 2019 03:23 PM|samirkarim|LINK
In the same code,If I use http://servername/reportServer no mistake, but if i use http://servername/reports i
The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version.
La demande a échoué avec l'état HTTP 404 : Not Found.
Mar 06, 2019 08:22 AM|Yuki Tao|LINK
It seems to be a compatibility problem.
You could refer to:
I find the similar link,you could as a reference: