FileNotFoundException using Windows Forms Report Viewer 150.1537.0

Andrew Polden 1 Reputation point
2023-05-05T07:06:09.18+00:00

I recently updated to Microsoft.ReportingServices.ReportViewerControl.Winforms version 150.1577.0, released 26/04, and it appears to be broken, failing at runtime with the error:

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

A bit of investigation by comparison to the preview version 150.1537.0 shows the nuspec file to be missing some files, which are downloaded as part of the package but missing from my build folder:

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
  <metadata>
    <id>Microsoft.ReportingServices.ReportViewerControl.Winforms</id>
    <version>150.1577.0</version>
    ...removed for revity...
    <owners>Microsoft</owners>
    <requireLicenseAcceptance>true</requireLicenseAcceptance>
    <licenseUrl>https://go.microsoft.com/fwlink/?LinkId=826162</licenseUrl>
    <projectUrl>https://go.microsoft.com/fwlink/?linkid=2014377</projectUrl>
    <description>Microsoft Report Viewer Control for .Net Windows Forms applications. Contains the assemblies required to use the Windows Forms Report Viewer Control</description>
    <releaseNotes>See Reporting Services Blog: https://go.microsoft.com/fwlink/?linkid=2133837</releaseNotes>
    <copyright>© Microsoft Corporation. All rights reserved.</copyright>
    <tags>Microsoft SSRS ReportViewer Report Viewer ReportingServices PBIRS Rdl Rdlc Paginated Reporting DataViz MSFT visualization WinForms</tags>
    <dependencies>
      <dependency id="Microsoft.SqlServer.Types" version="14.0.0" />
    </dependencies>
    <references>
      <reference file="Microsoft.ReportViewer.Winforms.dll" />
      <reference file="Microsoft.ReportViewer.Common.dll" />
    </references>
  </metadata>
</package>
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-05-08T02:03:22.3333333+00:00

    Hi @Andrew Polden

    Can you find this assembly in the project's reference? If not, try C:\Windows\assembly\GAC_MSIL... Locate the assembly, place it in the project's reference, and then set its Copy Local to true.

    For more details, you can see this link: https://stackoverflow.com/questions/45207154/could-not-load-file-or-assembly-microsoft-reportviewer-processingobjectmodel-v.

    Best regards,

    Aniya


  2. Andrew Polden 1 Reputation point
    2023-05-08T04:59:20.8266667+00:00

    I tried adding the missing files to the nuspec and they were copied to my output folder as I expected in the first place. I wouldn't necessarily recommend this approach and I have no way of knowing if it may cause other unexpected problems, but I think it seems pretty clear there is a problem with this release.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.