title: How to deploy or show a SSRS report in asp.net page using c#?
body: <p>I have made a SSRS report with is showing all the desired data when i am running the report but when i am trying see on the browser by </p>
  
  <pre><code>http://localhost/Reporting/SSRSTestReport
  </code></pre>
  
  <p>its giving me an error  </p>
  
  <blockquote>
    <p>HTTP Error 404.0 - Not Found The resource you are looking for has been
    removed, had its name changed, or is temporarily        unavailable.</p>
  </blockquote>
  
  <p>and when I am trying to show it in <code>aspx</code> page its giving me an error like this :</p>
  
  <pre><code>The attempt to connect to the report server failed. Check your connection information   and that the report server is a compatible version.
  The request failed with HTTP status 404: Not Found.
  </code></pre>
  
  <p>now i am doing this in <code>aspx.cs</code> page :</p>
  
  <pre><code> try
      {
          IReportServerCredentials irsc = new CustomReportCredentials("sa", "arindam", "ITPL_PC1");
          ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
          ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://localhost/Reporting/SSRSTestReport");
          ReportViewer1.ServerReport.ReportServerCredentials = irsc;
          ReportViewer1.ServerReport.ReportPath = "D:\\SSRSTest\\SSRSTest\\SSRSTest\\SSRSTestReport";
          ReportViewer1.ServerReport.Refresh();
  
      }
      catch (Exception ex)
      {
          Response.Write(ex.ToString());
      } 
  </code></pre>
  
  <p>the <code>CustomReportCredentials</code> I have taken from here : <a href="https://stackoverflow.com/questions/671694/passing-credentials-to-sql-report-server-2008">Passing Credentials to Sql Report Server 2008</a></p>
  
  <p>this is my <code>http handler</code> in my web.config</p>
  
  <pre><code>&lt;httpHandlers&gt;
          &lt;remove path="*.asmx" verb="*"/&gt;
          &lt;add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/&gt;
          &lt;add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/&gt;
          &lt;add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/&gt;
          &lt;add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/&gt;
      &lt;/httpHandlers&gt;
  </code></pre>
  
  <p>Please help me to solve this thing , I know I am missing something but couldn't find it</p>