Microsoft.ReportViewer.Common Version = 12.0.0.0

The following exception appears in my Windows Service application:

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.Common, Version = 12.0.0.0, Culture = neutral, PublicKeyToken = 89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

I cannot find the download url for version 12 and setting the files to Include and Superb (Auto) does not solve the problem in this Windows Service Application, although it works fine in my WinForms application and causes the corresponding files to be included and are referenced along with all other required .DLLs.

Can anyone help me get this Windows Service Application to include files or provide a download link that will install version 12 in the GAC?

+3


source to share


4 answers


The 12 bit version of ReportViewer is called Microsoft Report Viewer 2015 Runtime and can be downloaded for installation from the following link:

https://www.microsoft.com/en-us/download/details.aspx?id=45496

UPDATE:



The ReportViewer bits are also available as a NUGET package: https://www.nuget.org/packages/Microsoft.ReportViewer.Runtime.Common/12.0.2402.15

Install-Package Microsoft.ReportViewer.Runtime.Common

+24


source


I've been working on this issue for several days. Installed all packages, modified web.config and still had the same problem. I finally removed

<assemblies>
<add assembly="Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</assemblies>

      

from web.config and it worked. It's not clear why it doesn't work with tags in the web.config file. I am guessing there is a conflict with the GAC and the BIN folder.



Here is my web.config file:

<?xml version="1.0"?>
<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    <httpHandlers>
      <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />     
    </httpHandlers>    
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />      
    </handlers>
  </system.webServer>
</configuration>

      

+2


source


In my cases, after installing Sql Server Data Tools with the Visual Studio 2015 installer, the issue was resolved.

Here is a screenshot for installing data tools

+1


source


First install SQLSysClrTypes for Ms SQL 2014 and secondly install ReportViewer for ms sql 2014

Reload the app or project, in my case it is allowed.

0


source







All Articles