Microsoft.ReportViewer – “System.IO.FileNotFoundException: Could not load file or assembly ‘Microsoft.ReportViewer.WinForms, Version=11.0.0.0”

Background

There is an application that I am trying to run, but it is quickly failing.

 

Error

Error Image

Error Message


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

TroubleShooting

Could not load file or assembly ‘Microsoft.ReportViewer.WinForms, Version=11.0.0.0

Versioning

Let us take apart the identified module – “Microsoft.ReportViewer.WinForms, Version=11.0.0.0″.

  1. Module Name :- Microsoft.ReportViewer.WinForms
  2. Version :- 11.0.0.0
    • v11 is MS SQL Server 2012

GAC

Accessed GAC looking for Microsoft.ReportViewer.WinForms modules.

Image

Textual

>dir Microsoft.ReportViewer.WInForms* /s | more
 Volume in drive C has no label.
 Volume Serial Number is 42ED-C278

 Directory of C:\Windows\Microsoft.NET\assembly\GAC_MSIL

01/12/2018  02:22 PM    <DIR>          Microsoft.ReportViewer.WinForms.resources
               0 File(s)              0 bytes

 Directory of C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.ReportViewer.
WinForms.resources\v4.0_12.0.0.0_de_89845dcd8080cc91

01/03/2017  01:26 PM            42,688 Microsoft.ReportViewer.WinForms.resources
.dll
               1 File(s)         42,688 bytes

 Directory of C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.ReportViewer.
WinForms.resources\v4.0_12.0.0.0_es_89845dcd8080cc91

01/03/2017  01:26 PM            43,200 Microsoft.ReportViewer.WinForms.resources
.dll
               1 File(s)         43,200 bytes

 Directory of C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.ReportViewer.
WinForms.resources\v4.0_12.0.0.0_fr_89845dcd8080cc91

01/03/2017  01:26 PM            43,200 Microsoft.ReportViewer.WinForms.resources
.dll
               1 File(s)         43,200 bytes

 Directory of C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.ReportViewer.
WinForms.resources\v4.0_12.0.0.0_it_89845dcd8080cc91

01/03/2017  01:26 PM            43,200 Microsoft.ReportViewer.WinForms.resources
.dll
               1 File(s)         43,200 bytes

 Directory of C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.ReportViewer.
WinForms.resources\v4.0_12.0.0.0_ja_89845dcd8080cc91

01/03/2017  01:26 PM            45,248 Microsoft.ReportViewer.WinForms.resources
.dll
               1 File(s)         45,248 bytes


 

Explanation

The matches are v4.0_12….

v12 means SQL Server v2014.

 

Remediation

As we need the v11 ( Version Number ) or 2012 ( Product Name ), downloaded

Microsoft@Runtime Viewer 2012” from here.

Installed update.

 

Review

SysInternals

Process Explorer

Now that the App is running, launched SysInternals Process Explorer and narrowed in on the Application.

Image

Tabulated

  1. Microsoft.ReportViewer.Common.dll
  2. Microsoft.ReportViewer.WinForms.dll

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s