The remote name could not be resolved: 'server' in asp.net

Posted by Cpatil1000 under ASP.NET on 4/4/2015 | Points: 10 | Views : 1936 | Status : [Member] | Replies : 0
Hi,
I am trying to call a ssrs report on asp.net. but is getting errror here..

try
{
ReportViewer1.ProcessingMode = ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://server/ReportServer");
ReportViewer1.ServerReport.ReportPath = "~/ReportProject1/CategoryReport.rdl";

DataSourceCredentials dsCrendtials = new DataSourceCredentials();
dsCrendtials.Name = "DataSource1";
dsCrendtials.UserId = "";
dsCrendtials.Password = "";
ReportViewer1.ServerReport.SetDataSourceCredentials(new DataSourceCredentials[] { dsCrendtials });

ReportViewer1.ServerReport.Refresh();
}
catch (Exception ex)
{
throw ex;
}




Responses

(No response found.)

Login to post response