VB 2010 App w/ Report viewer upgrade to VB 2019 Professional

Duggan, Daniel 96 Reputation points
2020-12-07T18:24:15.633+00:00

I have a VB 2010 App that uses Report Viewer 2010. The app compiles and runs properly when deployed. I now have VB 2019 and have opened my VB 2010 App with it. The App, including the generation of the Report Viewer report runs properly. However, if I change anything at all in the report RDLC file (even a single textbox character), save and run in debug, it throws this exception:

Microsoft.Reporting.WinForms.LocalProcessingException
HResult=0x80131500
Message=An error occurred during local report processing.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>

Inner Exception 1:
DefinitionInvalidException: The definition of the report '' is invalid.

Inner Exception 2:
ReportProcessingException: The report definition is not valid. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' which cannot be upgraded.

What can I change to cure this exception?
Thank you

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.
2,918 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,722 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
999 questions
0 comments No comments
{count} votes

Accepted answer
  1. Duggan, Daniel 96 Reputation points
    2020-12-08T16:31:42.407+00:00

    When I tried to install this report viewer control to my VB2010 App that uses 2010 report Viewer, I get the following error messages and it won't install. What would be the best way to cure this?
    Thank you,

    Could not install package 'Microsoft.ReportingServices.ReportViewerControl.Winforms 150.1427.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v3.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

    Package 'Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1427.0 : Microsoft.SqlServer.Types [14.0.0, )' does not exist in project 'SCoPe 2012'

    Install failed. Rolling back...


1 additional answer

Sort by: Most helpful
  1. ZoeHui-MSFT 36,511 Reputation points
    2020-12-08T02:08:04.5+00:00

    Hi @Duggan, Daniel ,

    Please try to download the newest Report Viewer version v150.1427.0 for VS2019.

    https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.Winforms/

    Release note for your reference:

    https://learn.microsoft.com/en-us/sql/reporting-services/application-integration/release-notes-ssrs-application-integration?view=sql-server-ver15

    Regards,
    Zoe


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    What can I do if my transaction log is full?--- Hot issues November

    How to convert Profiler trace into a SQL Server table -- Hot issues November

    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.