title: The request failed with HTTP status 401: Unauthorized IN SSRS
body: <p>My Application is in  <code>Asp.Net MVC3</code> coded in <code>C#</code>, i have a SSRS solution in <code>SQL Server Business Intelligence Developement Studio</code> in <code>Visual Studio 2008</code> , I'm calling the SSRS report through my <strong>Asp.Net MVC3</strong> application. My application was running fine a couple of days back but suddenly i'm getting an error as follows:</p>
  
  <p><strong>My Error :</strong></p>
  
  <pre><code>The request failed with HTTP status 401: Unauthorized.
  </code></pre>
  
  <p><strong>My Attempts</strong></p>
  
  <ol>
  <li><p>My SSRS reports are deployed on my <code>local server</code>. I have my credential properly set in the datasource of my SSRS report solution.</p></li>
  <li><p>I tried to add the tag in my web.config <code>&lt;identity impersonate="true" userName="Domain\username" password="Password" /&gt;</code></p></li>
  <li><p>I tried adding <code>IReportServerCredentials reportCredentials = new ReportServerCredentials("MyUserName", "MyPassword", "ServerName");</code> </p></li>
  <li><p>I ran the Visual Studio as <code>'Run as Administrator'</code>.</p></li>
  <li><p>I tried the solution mentioned in this link <a href="http://www.taznetworks.com/rss/2006/03/crm-30-sbe-sql-reporting-error.html" rel="nofollow noreferrer">Creating a key using RegEdit</a></p></li>
  <li><p><strong>Update</strong>
  I tried the following solution as well but the same result : <a href="https://stackoverflow.com/questions/18072975/request-failed-with-http-status-401-unauthorized-on-second-try">Unauthorized error in SSRS</a> </p></li>
  </ol>
  
  <p>None of the above solutions worked, but when i run the same solution on some other machine than the solutions works well and no error is displayed. Its only when i run the solution from my machine then i get the error <code>The request failed with HTTP status 401: Unauthorized.</code></p>