vani vn

vani vn

  • NA
  • 15
  • 3.5k

SSRS report use in web application

Feb 22 2017 5:36 AM
Hai all, 
 
Please help me, iam new in ssrs reporting.
im developing a ssrs report and deploy it to the server(VPN)
this deploy link use in the .net web application.
if i open the ssrs report through direct server link i can view the report.
but in the webapplication i can't open that report.
it shows the error"The request failed with HTTP status 401: Unauthorized.
how can i sove.
 
 my code is like
 
rv1.ProcessingMode = ProcessingMode.Remote;
IReportServerCredentials ssrscredentials = new CustomSSRSCredentials("myUsername", "myPwd", "myIpaddress");//VPN server login ipaddress,user and pwd
ServerReport serverReport = rv1.ServerReport;
rv1.ServerReport.ReportServerCredentials = ssrscredentials;
rv1.ServerReport.ReportServerUrl = new Uri("http://rdl/ReportServer");
rv1.ServerReport.ReportPath = "/RdlReports/Rpt1-Report";
ReportParameter[] parameters = new ReportParameter[1];
parameters[0] = new
ReportParameter("indate", txtdate.Text);
rv1.ServerReport.SetParameters(parameters);
rv1.ShowParameterPrompts = false;
rv1.ShowPromptAreaButton = false;
rv1.ServerReport.Refresh();
 
 
Thanks.
 

Answers (3)