title: ReportViewer in Web Application VS 2019
body: <p>I am working on a web application project and I am using Visual Studio 2019, and when I reach the point I need to make a report wising RDLC report I install the report viewer using this command</p>
  <pre><code>    Install-Package Microsoft.ReportingServices.ReportViewerControl.WebForms -Version 150.1400.0
  </code></pre>
  <p>Then I follow all the instruction in this page exactly</p>
  <p><a href="https://docs.microsoft.com/en-us/sql/reporting-services/application-integration/integrating-reporting-services-using-reportviewer-controls-get-started?view=sql-server-ver15" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/sql/reporting-services/application-integration/integrating-reporting-services-using-reportviewer-controls-get-started?view=sql-server-ver15</a>
  in the webform i add the following</p>
  <pre><code>    &lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeBehind=&quot;WebForm1.aspx.cs&quot; Inherits=&quot;Sample&quot; %&gt;
  
  &lt;%@ Register assembly=&quot;Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91&quot; namespace=&quot;Microsoft.Reporting.WebForms&quot; tagprefix=&quot;rsweb&quot; %&gt;
  
  &lt;!DOCTYPE html&gt;
  
  &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;head runat=&quot;server&quot;&gt;
      &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&gt; 
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
      &lt;asp:ScriptManager runat=&quot;server&quot;&gt;&lt;/asp:ScriptManager&gt;        
          &lt;rsweb:ReportViewer ID=&quot;ReportViewer1&quot; runat=&quot;server&quot; ProcessingMode=&quot;Remote&quot;&gt;
              &lt;ServerReport ReportServerUrl=&quot;https://AContosoDepartment/ReportServer&quot; ReportPath=&quot;/LatestSales&quot; /&gt;
          &lt;/rsweb:ReportViewer&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>when I compile the project I got this error</p>
  <pre><code>Error BC30002   Type 'Global.Microsoft.Reporting.WebForms.ReportViewer' is not defined.
  </code></pre>
  <p>I review the reference many times and the DLL file exists and all the assembly defined</p>