I am using sql reporting and written query
SELECT * FROM users WHERE created_by = @createdby
and passing parameter using this code in code behind file to call this report.
param[0] = new ReportParameter("@createdby", "1");
reportviewer.ServerReport.SetParameters(param);
also in rdl file. I have set this paramerter "Set Parameter visibilty" to hidden. It is working fine where I executes this query using query builder, a define query parameter box appears and ask for query parameter. and it works great.
but while passing this parameter using .cs file. It gives error "Parameter validation failed. It is not possible to provide valid values for all parameters. (rsParameterError)".