Click here to Skip to main content
15,912,504 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i used SSRS reports. now i calling ssrs reports as below


ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://node_10/Reports_SQL2012"); //this is my Report server url
ReportViewer1.ServerReport.ReportPath = "/Reports/Report1"; // this is my report where the reports are deployed.
ReportViewer1.ServerReport.Refresh();







Now i got this error.


The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version.
The request failed with HTTP status 404: Not Found.
Posted

1 solution

Try this:

C#
string reportServerName = @"http://hn-sd-0100-wk/ReportServer_SQL2008R2";
string reportFolder = @"/ReportProjectContact/";
string reportName = "ReportContact";

ReportViewer1.ProcessingMode = ProcessingMode.Remote;
ServerReport serverReport;
serverReport = ReportViewer1.ServerReport;
serverReport.ReportServerUrl = new Uri(reportServerName);
serverReport.ReportPath = reportFolder + reportName;


I have tested it and work in asp.net.
 
Share this answer
 
Comments
sai sagar 2-Jul-13 4:11am    
Again i got the same problem. Here i am deploying my report. i am directly uploading my Report into Server .
Anh Nguyen Trong 2-Jul-13 4:16am    
do you have deploy the report successful?
sai sagar 2-Jul-13 4:25am    
no i created on SSRS report , that report can uploading into server directly. in server one option is there Upload file, here i uploaded my report and added my database also. In server i check my report output it's shows correctly. now i want to show this report into my web page it's show that error.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900