Solved

ASP.NET - VS2005 (VB) - Report Viewer Control - Http status 401: Access Denied

Posted on 2007-03-29
5
1,057 Views
Last Modified: 2013-11-26
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.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID) at Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() at Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1 parameters) at Agent_Incentive.Display_Report(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
0
Comment
Question by:GRCHELPDESK
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 20

Expert Comment

by:brwwiggins
ID: 18815954
The account your ASP.NET application runs under on the IIS server does not have permission to the report.
0
 
LVL 2

Author Comment

by:GRCHELPDESK
ID: 18816020
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
0
 
LVL 2

Author Comment

by:GRCHELPDESK
ID: 18840141
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
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 19280412
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question