locked
Microsoft Reporting RDLC Report RRS feed

  • Question

  • User-90830185 posted

    I am running VS2019, SQL2014 (Express) on my machine. I created an RDLC report to view in ReportViewer (12) on the Web Page. All working fine.  However, as soon as I add a report parameter I start getting an error - 

    The definition of this report is not valid or supported by this version of Reporting Services. The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' which cannot be upgraded.

    I have searched and checked many suggestions and as per one suggestion I added - Microsoft.ReportingServices.ReportViewerControl.WebForms.140.340.80 (package) but now I get an error - 

    Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly

    Can someone help please?

    Sunday, December 15, 2019 7:08 PM

Answers

  • User-90830185 posted

    Hi Yu,

    Many thanks for the reply, however changing to 150.1358.0 did not work, it kept giving me issue.

    However, your reply prompted me try other versions and for my surprise version 150.900.148 worked for now anyway. Will investigate it further though but once again many thanks for the reply.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 17, 2019 4:21 PM

All replies

  • User665608656 posted

    Hi Moodhi,

    Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly

    This error usually indicates that the version of the Microsoft.ReportingServices.ReportViewerControl.WebForms dll you are downloading is inconsistent with the existing Microsoft.ReportViewer.Common reference version.

    You can find the information of these two dlls in the system.web>compilation>assemblie in the Web.config of your current project. Your current version of these two dlls  should be inconsistent.

    Here is the consistent version in web.config:

       <assemblies>
            <add assembly="Microsoft.ReportViewer.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
            <add assembly="Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
          </assemblies>

    To solve this issue, I suggest you find Microsoft.ReportingServices.ReportViewerControl.WebForms in Manage NuGet Packages of the current project and update this dll version to 150.1358.0.

    Best Regards,

    YongQing.

    Monday, December 16, 2019 7:23 AM
  • User-90830185 posted

    Hi Yu,

    Many thanks for the reply, however changing to 150.1358.0 did not work, it kept giving me issue.

    However, your reply prompted me try other versions and for my surprise version 150.900.148 worked for now anyway. Will investigate it further though but once again many thanks for the reply.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 17, 2019 4:21 PM