I am trying to test report viewer in SharePoint 2010 using application page and user control My code is :
try
{
reportvwr.ProcessingMode = ProcessingMode.Remote;
reportvwr.ServerReport.ReportServerUrl = new Uri("http://localhost/ReportServer");
reportvwr.ServerReport.ReportPath = "/CustomersByIdReport";
reportvwr.ServerReport.Refresh();
ReportParameter[] reportParameterCollection = new ReportParameter[1]; //Array size describes the number of paramaters.
reportParameterCollection[0] = new ReportParameter();
reportParameterCollection[0].Name = "customerId"; //Give Your Parameter Name
reportParameterCollection[0].Values.Add(txt_Id.Text); //Pass Parametrs's value here.
reportvwr.ServerReport.SetParameters(reportParameterCollection);
reportvwr.ServerReport.Refresh();
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
but when i am trying to deploy this page i am getting this error :
The type 'Microsoft.SharePoint.Portal.Analytics.UI.ReportViewerMessages, Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' could not be found
notice: First time to work with sharepoint 2010