I am passing the parameter from aspx page to report server and getting this exception. Here is my code to set the report parameters.
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://zeeshankhatri-p/ReportServer_MSSQLSERVER2012");
ReportViewer1.ServerReport.ReportPath = "/DBAReporting/Clients";
ReportParameter p = new ReportParameter();
p.Name = "clientName";
p.Values.Add("Bank Alfalah");
ReportViewer1.ServerReport.SetParameters(p);
here are Parameter Properties:
Select Parameter Visibility = Internal
Allow Blank Value = checked
Allow null Value = checked
Available Values = None
Default Values = No default value
DataSet Properties:
Query:
Query Type = Stored Procedure
Parameters:
Parameter Name = @clientName
Parameter Value = [@clientName]
Can you please suggest what i did wrong in my case.?