none
ReportViewer the request failed with http status 401 unauthorized RRS feed

  • Question

  • When I deploy my web app to the server where SSRS 2008 resides, and try to navigate to the page with the reportViewer control, i get the error, 'the request failed with http status 401 unauthorized'.

    I have implemented IReportServerCredentials and am passing in my server account credentials.  Locally in my dev environment, the report comes up fine.  And I can browse to the SSRS report folder and pull up reports just fine on the server using those credentials.  Its just when the app is deployed.

    Using VS 2005 on local XP machine

    SSRS 2208 R2 (Server Account: Local System)

    Windows Server 2003

    If anyone has any suggestions on how to get around this, I would appreciate it.  Thanks!


    • Edited by maisie Friday, May 20, 2011 1:11 AM clarity
    Thursday, May 19, 2011 10:36 PM

All replies

  • How are you hooking up the IReportServerCredentials (show some code)? It might not be actually using your IReportServerCredentials, which give you the different behavior on your dev machine (your user credentials) and your deployment machine (ASP.NET app pool credentials).
    Cephas Lin This posting is provided "AS IS" with no warranties.
    Monday, May 23, 2011 8:36 PM
    Moderator
  • Hi,

    I implemented IReportServerCredentials and am passing my credentials in via the constructor.  I think its taking them fine, since when I pass in an incorrect password, it stops working locally.  But I think I just solved the problem this morning.  I followed this which did the trick:

    http://stevenharman.net/blog/archive/2007/03/21/avoiding-the-401-unauthorized-error-when-using-the-reportviewer-in.aspx

     

    thank you for your reply, I appreciate it.

    Tuesday, May 24, 2011 5:54 PM