ASP.Net -  ReportViewer  - The request failed with HTTP status 401: Unauthorized.

Posted on 2010-01-05
Last Modified: 2012-12-27
I have created a page with a ReportViewer  on it and have connected it to our reporting server. The problem is thou i get that error message: "The request failed with HTTP status 401: Unauthorized.  "
when i try to view it. It only works when i run the project in debug mode in CS 2008.
Also my site is based on Integrated Windows authentication.

Any idea how to solve this? I dont really have any access to IIS or the Reporting Server, im only able to deploy on it.
Question by:urir10
    LVL 4

    Accepted Solution

    I am guessing here because i have no logs.
    When you debug it's your user trying to access the reporting server and you have permissions.
    When you try to view it it's your NETWORK SERVICE trying to access the reporting server which identifies as your computer and i guess it does not have the proper rights.

    Can you put the logs here? They are usually located in here:
    C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\LogFiles

    LVL 29

    Assisted Solution

    by:Kumaraswamy R

    Bellow URL give some information
    LVL 7

    Author Comment

    Thanks for the links, i tried  <identity impersonate="true" /> and it works on my local now but not on the server. And i dont have access to all the other things suggested there, like changing registry keys and such.

    as for the logs file i was unable to find them, do they need to be on my pc or on the Reporting server?
    LVL 7

    Author Comment

    any other ideas?
    LVL 7

    Author Closing Comment

    Figured it out myself, thanks for the help thou

    Expert Comment

    How did you fix it?  I'm having the same problem.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now