Click here to Skip to main content
15,889,482 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am calling .rdl report from aspx page. Below is the code-:

MyReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
MyReportViewer.ShowCredentialPrompts = true;
MyReportViewer.ServerReport.ReportServerUrl = new Uri(@"http://ingsdfsdfgfd/Reports");
MyReportViewer.ServerReport.ReportPath = "ReportName";
MyReportViewer.ShowParameterPrompts = true;
MyReportViewer.ShowPrintButton = true;


MyReportViewer.ServerReport.Refresh();


Below is the error i get-:

CSS
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.




Please Advise
Posted
Comments
Sinisa Hajnal 1-Dec-14 3:12am    
Well, the error is quite clear. Your rld could not be found. Check the documentation on setting Path properties and server URI, you're making a mistake somewhere.

Try to browse through your browser on the link you provided to the server.
roshni gupta 1-Dec-14 3:43am    
I am able to browse the url
Shweta N Mishra 1-Dec-14 4:56am    
Your Report path just the name of report, Try to make it full URL and then check.
roshni gupta 1-Dec-14 5:28am    
thanx....but now it shows me result in html format in report viewer with below error-:
Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.

1 solution

 
Share this answer
 

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