Click here to Skip to main content
15,311,151 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.




Thanks.

What I have tried:

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();
Posted
Updated 1-Mar-17 18:49pm
Comments
[no name] 23-Feb-17 4:07am
   
Are you able to login to your VPN with the credentials that you are passing to CustomSSRSCredentials ?

1 solution

Hi ,

Please ensure below steps

1. Open IE (Run as Admin) type http://localhost/reports
2. Select Folder settings
3. Select new role assignment
4. Add User Details
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900