GRCHELPDESK
asked on
ASP.NET - VS2005 (VB) - Report Viewer Control - Http status 401: Access Denied
Hello Experts,
I'm using the Report Viewer Control on an ASP.NET web page. The report runs fine on my machine in VS2005. I published it, and it runs fine on the server. However, when I try to run it on a client machine from the server (ex: Http://servername/project.aspx) I get the following error message:
The request failed with HTTP status 401: Access Denied.
Stack Trace: at Microsoft.SqlServer.Report ingService s2005.Exec ution.RSEx ecutionCon nection.Ge tSecureMet hods() at Microsoft.SqlServer.Report ingService s2005.Exec ution.RSEx ecutionCon nection.Is SecureMeth od(String methodname) at Microsoft.SqlServer.Report ingService s2005.Exec ution.RSEx ecutionCon nection.Lo adReport(S tring Report, String HistoryID) at Microsoft.Reporting.WebFor ms.ServerR eport.GetE xecutionIn fo() at Microsoft.Reporting.WebFor ms.ServerR eport.SetP arameters( IEnumerabl e`1 parameters) at Agent_Incentive.Display_Re port(Label lblAgent, DateTime strDate)
I'd really appreciate if someone could help me with this, I'd appreciate it. My deadline is about to steam-roller me...
Thanks,
GRCHELPDESK
I'm using the Report Viewer Control on an ASP.NET web page. The report runs fine on my machine in VS2005. I published it, and it runs fine on the server. However, when I try to run it on a client machine from the server (ex: Http://servername/project.aspx) I get the following error message:
The request failed with HTTP status 401: Access Denied.
Stack Trace: at Microsoft.SqlServer.Report
I'd really appreciate if someone could help me with this, I'd appreciate it. My deadline is about to steam-roller me...
Thanks,
GRCHELPDESK
The account your ASP.NET application runs under on the IIS server does not have permission to the report.
ASKER
Hello brwwiggins,
I currently have anonomys access disabled, and I'm using windows authentication. I need to do this because the page pulls the logon ID of the user and passes that parameter to the report. (to show stats for only them)
Since I'm running the report, it's pulling my windows ID, and I have an ID built in SQL Services & the reporting side. Sorry, I should have mentioned that in the post... I've been up for 26 hrs now my brain is mush.
Thanks!
GRCHELPDESK
I currently have anonomys access disabled, and I'm using windows authentication. I need to do this because the page pulls the logon ID of the user and passes that parameter to the report. (to show stats for only them)
Since I'm running the report, it's pulling my windows ID, and I have an ID built in SQL Services & the reporting side. Sorry, I should have mentioned that in the post... I've been up for 26 hrs now my brain is mush.
Thanks!
GRCHELPDESK
ASKER
Hey Everyone,
I've finally got this working. I was running into the double-hop issue. The problem is that the webpage resided on one server, and the report on a different server. So when you viewed it on a client machine, it would pass the credentials along to server hosting the web page. The web page would run and call the report from the server hosting the report... but apprently the credentials can't make that "double hop" to 2nd server. So since they're not being sent, you get "Access Denied". So when I setup the webpage on the same server as the report, it just worked.
One final note. I then got a new error message "rsAccess Denied". This is an error message from the Reporting Services. Reporting Services knew exactly who was logging in, it was just denying them access to view the report.
So we checked the settings in Report Manager and found the problem. We needed to assign "Execute Report Definition" to a system role, and then add the user group to that role. Then once we added that user group to folder associated with the report, it worked fine.
I hope this helps anyone else running into this issue.
Cheers,
GRCHELPDESK
I've finally got this working. I was running into the double-hop issue. The problem is that the webpage resided on one server, and the report on a different server. So when you viewed it on a client machine, it would pass the credentials along to server hosting the web page. The web page would run and call the report from the server hosting the report... but apprently the credentials can't make that "double hop" to 2nd server. So since they're not being sent, you get "Access Denied". So when I setup the webpage on the same server as the report, it just worked.
One final note. I then got a new error message "rsAccess Denied". This is an error message from the Reporting Services. Reporting Services knew exactly who was logging in, it was just denying them access to view the report.
So we checked the settings in Report Manager and found the problem. We needed to assign "Execute Report Definition" to a system role, and then add the user group to that role. Then once we added that user group to folder associated with the report, it worked fine.
I hope this helps anyone else running into this issue.
Cheers,
GRCHELPDESK
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.