Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=xx.0.0.0

Saturday, 6 August 2016

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=xx.0.0.0

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify
your source file appropriately.

Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

This error will show when report viewer msi is not installed on hosting server.To solve this issue we have to install SQLSysClr for 32 bit server run this X86:  http://go.microsoft.com/fwlink/?LinkID=239644 and for 64 bit server run X64 :http://go.microsoft.com/fwlink/?LinkID=239644
After successfully installation of the above file downloads the msi from https://www.microsoft.com/en-hk/download/details.aspx?id=35747 link

your web.config must have to contain the following tag

<httpHandlers>
      <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" validate="false"/>
    </httpHandlers>
and

  <buildProviders>
        <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
      </buildProviders>
with in <system.web> and

 <handlers>
      <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler,
           Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
   <!-- <add name="Reserved-ReportViewerWebControl-axd" path="Reserved.ReportViewerWebControl.axd"
verb="*" type="Microsoft.Reporting.WebForms.HttpHandler" resourceType="Unspecified"
/>-->
    </handlers> with in system.webServer