The request failed with HTTP status 401: Unauthorized.

I have a report created that works in when I run locally, but when I deploy it to the hosted report server it works when I access it on the report server.  When I run it from my application using a report viewer I get "The request failed with HTTP status 401: Unauthorized.".  Any suggestions?  Thanks!
Who is Participating?
santhimurthydConnect With a Mentor Commented:
Check under which account your Asp.Net application works and that account got provisioned to execute the report.

Some of the reason to cause 401 are

User is not authorized with the Report Server.
May be Reporting Services is configured to use Kerberos, where as the Service Principal Name(SPN) is not registered for the account under Reporting Services is running.

Check with the below steps for configuration of Windows Authentication

check this URL, whether is it helps with your infrastructure
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.