简体   繁体   中英

The attempt to connect to the report server failed. ssrs reporting

在此处输入图片说明

Hi, I am having problem while connecting to ssrs report. My report is running successfully on the server and i am attaching screen shot of the report also. Client Code:

ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
        ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://nysa31:8080/Reports_MS2008");
        ReportViewer1.ServerReport.ReportPath = "~/New Item";

        ReportParameter[] Params = new ReportParameter[1];

        Params[0] = new ReportParameter("EmployeeID", "990");
        ReportViewer1.ServerReport.SetParameters(Params);
        ReportViewer1.ServerReport.Refresh();

I am getting 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 Report Server URL you have set seems to be the Report Manager URL. Enter the Report Server URL to resolve the issue.

use

http:/ /N ysa31:8080/Reports_MS2008

instead of

http:// n ysa31:8080/Reports_MS2008

and folder names must starts with Uppercase letter.

because \\n and \\r are new line charectors. path name mayn't work .

You may want to have a bit of a read about accessing SSRS via windows auth, eg:

http://praveenbattula.blogspot.com/2010/01/report-viewer-control-authentication.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM