Click here to Skip to main content
15,887,331 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created an report but while running from webform i am facing the following problem.

The item '/Reports/PFContributionReport' cannot be found. (rsItemNotFound)

My report calling code is:

C#
if (!IsPostBack)
        {
            string reportServerURL = @"http://localhost/ReportServer";
            string reportPath = @"/Reports/PFContributionReport";

            rptvw.ProcessingMode = ProcessingMode.Remote;
            rptvw.ServerReport.ReportServerUrl = new Uri(reportServerURL);
            rptvw.ServerReport.ReportPath = reportPath;
            ReportParameter[] param = new ReportParameter[1];
            param[0] = new ReportParameter("@useraccountid", Session["LogedUser"].ToString());
            rptvw.ServerReport.SetParameters(param);
            rptvw.ServerReport.Refresh();
        }

please help me.how would i remove the error.
Posted

1 solution

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