ReportViewer giving "The request failed with HTTP status 401: Unauthorized. " error

Discussion in 'Visual Studio' started by factsonwebc, Aug 26, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. i am using SSRS2005 with .NET 3.5 reportviewer control.

    the .aspx page works fine when i point to some local report.

    but does not work on DASP server.

    i do have a folder XYZunder the root folder, which is where this aspx page belongs to.
    this folder XYZ is only accessible by limited members.

    is there any application setting i need to do for this folder?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

  3. i have gone through that thread but i am unable to find out what exactly do i need to do.





    i have a folder which is restricted to some members (say login X)





    this folder contains the aspx page which hosts the reportviewer control.


    SSRS is using Login Y





    and SQL database is uging Login Z





    how do i tie X, Y, Z and when is my confusion.


    [​IMG]


    do you have any examples (in C#) of a sample solution?
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    When you restrict the asp.net pages w/ either form or windows authentication, it has nothing to do w/ the reporting service login.


    The code we posted in the other post should work just fine. Sorry, we don't have any C# code available but it should be rather easy to convert.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Hi Bruce - thanks for your response.





    can you at least tell me which portion of the thread is relevant for my purpose. i am sorry thats a long thread trying to solve too many problems.


    if you can pass me another pointer, i am sure I will be on my own...
    [​IMG]
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    The first post in that thread should have the sample code.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page