Dear Sir
I am tring to open report but report is not loading and show below error
ERROR :
- Unable to connect to the remote server
- No connection could be made because the target machine actively refused it 127.0.0.1:80
protected void displaytest()
{
ConnectionStringFunction();
SqlCn = new SqlConnection(ConPath);
SqlCn.Open();
SqlCm = new SqlCommand("select * from brandmaster", SqlCn);
SqlDa = new SqlDataAdapter(SqlCm);
SqlDt = new DataTable();
SqlDa.Fill(SqlDt);
ReportViewer1.LocalReport.DataSources.Clear();
ReportDataSource rds = new ReportDataSource("DataSet1", SqlDt);
ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Report/AtestReport.rdlc");
ReportViewer1.LocalReport.DataSources.Add(rds);
ReportViewer1.LocalReport.Refresh();
}
Process is going perfectly in debug