Hi
I have published a SSRS report on the report server.
Here is the URL where TestActivity.rdl is uploaded. When I go the url below and click on the report, it shows up as expected and after I enter the parameters the report executes correctly.
URL: http://CompanyURL.ABC.com/Reports/Pages/Folder.aspx?ItemPath=%2fdept+name%2fDept_Test&ViewMode=List
The goal is to have a web page for the users to select the parameters and then pass these parameters to the report and have the report run and display data.
Currently I am passing the parameters directly in the code and getting an error using the URI information in the code below; Is there something I am missing or the way URI information being passed is not correct?
I have highlighted the server url and folders in red above. any help is greatly appreciated.
Asp.net code
MyReportViewer.ProcessingMode = ProcessingMode.Remote;
MyReportViewer.ServerReport.ReportServerUrl = new Uri(http://CompanyURL.ABC.com);
MyReportViewer.ServerReport.ReportPath = "//Reports//Dept Name//Dept_Test//TestActivity";
MyReportViewer.ServerReport.Refresh();
eportParameter[] reportParameterCollection = newReportParameter[3];//Array size describes the number of paramaters.
reportParameterCollection[0] =newReportParameter();
reportParameterCollection[0].Name ="SOME NAME";//Give Your Parameter Name
reportParameterCollection[0].Values.Add("01/01/2018");//Pass Parametrs's value here.
reportParameterCollection[1] =newReportParameter();
reportParameterCollection[1].Name ="SOME NAME";//Give Your Parameter Name
reportParameterCollection[1].Values.Add("200");//Pass Parametrs's value here.
reportParameterCollection[2] =newReportParameter();
reportParameterCollection[2].Name ="SOME NAME";//Give Your Parameter Name
reportParameterCollection[2].Values.Add("10");//Pass Parametrs's value here.
MyReportViewer.ServerReport.SetParameters(reportParameterCollection);
MyReportViewer.ServerReport.Refresh();
Error
System.Net.WebException: The remote name could not be resolved: 'CompanyURL.ABC.com' at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname) at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod) at Microsoft.Reporting.WebForms.SoapReportExecutionService.LoadReport(String report, String historyId) at Microsoft.Reporting.WebForms.ServerReport.EnsureExecutionSession() at Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1 parameters) at abcd.Reports.Button1_Click(Object sender, EventArgs e) in c:\Users\<<>>.cs:line 57