简体   繁体   中英

The definition of this report is not valid or supported by this version of Reporting Services

I am using RDLC reporting in a ASP.Net Web Application . In development version my Reports works perfectly but when i deploy it on IIS on Server, I got the below error.

I have checked the version of Report viewer, its same...

Server Error in '/' Application.

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: Data at the root level is invalid. Line 1, position 1.

图片

  1. Add below dll to /bin folder

    • Microsoft.ReportViewer.Common.dll
    • Microsoft.ReportViewer.ProcessingObjectModel.dll
    • Microsoft.ReportViewer.WebForms.dll
  2. Expand File Publish Options, and then check Allow this precompiled site to be updateable.

Remove the following lines from Web.config:

<buildProviders>
  <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
</buildProviders>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM