Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.11/5 (2 votes)
See more:
Hi,

I have created the .rdl file in visualstudio 2008.Its working fine and deployed these report in Reportserver Manager.I have checked the report in ReportManager locally.That's also absolutely working.I am calling these report from .aspx page.The code looks like below
 protected void Report()
    {
        string strPath = string.Empty;

        ServerReport serverRptObj = rptTransactions.ServerReport;
        serverRptObj.ReportServerUrl = new Uri(ConfigurationManager.AppSettings["ReportServer"]);

        ReportParameter rptParamObj = new ReportParameter();
        rptParamObj.Name = "Date";
        rptParamObj.Values.Add(strDate);

        strPath = "/Online/Trans Report";
        serverRptObj.ReportPath = strPath;
        rptTransactions.ServerReport.Refresh();
        rptTransactions.ServerReport.SetParameters(new ReportParameter[] { rptParamObj });
}


It's showing the error for me "The attempt to connect to the report server failed.Check Your connection information and that the reportserver is a compatible version".How to fix this issue.Can anyone help regarding this?(*****Please don't delete my question(it's my humble request')***********************)
Posted
Comments
Richard C Bishop 26-Mar-13 17:22pm    
Can you post the "ReportServer" part of your code you have in your web.config file?
priya9826 26-Mar-13 17:24pm    
<add key="ReportServer" value="http://rdev/Reports">
Sabarish Mahalingam 16-Jul-15 7:08am    
rptDisplay.ServerReport.ReportServerCredentials = new MyReportServerCredentials();
priya9826 26-Mar-13 17:24pm    
<add value="http://rdev/Reports" key="ReportServer">
[no name] 26-Mar-13 18:11pm    
The error is pretty obvious isn't it? Check that you are connecting to the report server that you deployed your report to and makes sure that you have a compatible version.

Try

Check your IIS first

Then

1. Go to Reporting Services Configuration Connection
2. Start services with the instance of your SQL Server
3. Go to Report Manager URL assign role for your user windows to

If eveything you check can work. you can deploy your reports
 
Share this answer
 
I got this behavior when I made a type in the rssrvpolicy.config file. When I corrected the typo, the server started working.
 
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