Report definition invalid

I converted the .rdlc repeater from SSRS 2005 to SSRS 2008. Now that I am going to build this project, I have an error.

Report definition is not valid. Details: the report definition has an invalid target namespace http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition 'that cannot be updated.

Please give me a solution for this.

+4
source share
8 answers

Just stumbled upon this question since I had the same problem. In my case, I had a link to an earlier version of ReportViewer.WinForms. When I switched versions, everything worked fine. This may not be the case you have, but just thought that I would call you back if anyone else found this page.

+5
source

I had an almost similar problem, but in a different version of visual studio (2012), and I found out that the problem is related to the version of Microsoft.ReportViewer.WebForms.dll or winforms. You can still reference the old one associated with your current version of visual studio, so check the dll version and if you delete it and add the latest version

+2
source

I ran into the same problem and the solution for me was to edit the file:

 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0 \ReportingServices\Microsoft.ReportingServices.targets 

And change line # 2, which previously said the following:

 <UsingTask TaskName="Microsoft.Reporting.RdlCompile" AssemblyName="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> 

For this:

 <UsingTask TaskName="Microsoft.Reporting.RdlCompile" AssemblyName="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> 

Once this was done, my program started compiling again.

+1
source

I had exactly the same problem. For me, the solution was to exclude the report from the project and add it again. After that, it compiled successfully.

+1
source

I'm not quite sure why @ user2702793 the answer got a vote because this sentence just saved my career:

Consider

  • Create an empty SSRS 2008 report and copy all content from an SSRS 2005 report to a new one
  • copy the SSRS 2005 report name if you want to keep the report name intact
  • delete this report (SSRS 2005, in which you just copied the content from your new report)
  • rename the new SSRS 2008 (with the contents of the SSRS 2005 report deleted) and paste the name of the report in.

I had a very similar situation, mentioned above, except that I wanted to keep old versions of SSRS instead of updating. Which basically made me make a copy of the old version by copying the contents from a randomly updated report and pasting it into the copied report, and copying the name of the updated report, deleting it and renaming my copied report to keep the same name of the report that was just deleted.

Edit: Of course, in my case, I also wanted to make changes to the old report that was in the updated report, so my continued work was not to lose my current changes.

0
source

The solution that worked for me was to run the .NET cleanup tool. At first I tried the .NET Framework recovery tool and it did not work. I read the sentences here

0
source

In the ReportViewer properties in the expand LocalReport / Path web form, the field sets the correct report path

  • This works for me ...
0
source

This may be a conversion problem. Create a new report for 2008. And I suggest using VS2010. I have the same problem when editing a report with VS2012.

-1
source

All Articles