I upgraded to VS2010 a few weeks ago and everything went pretty OK. Until today. Today I wanted to add another report, which was no big deal. Making the report is the same as in VS2008, no improvements there. And then I tried to run the report. And all was not so well. I got this.

With the error message being.

An error occurred during local report processing. The definition of the report ‘Main Report’ is invalid. The report definition is not valid. Details: The report definition has an invalid target namespace ‘http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition’ which cannot be upgraded.

Apparently VS2010 makes its reports in the SSRS 2008 format which the VS2008 reportviewer can’t read. So the problem is that I still had v9.0.0.0 of the reportviewer referenced and it needed a reference to the 10.0.0.0. No problem since version 10.0.0.0 was installed when I installed VS2010. But if you so like it is also available as a separate download.

As you can see I have both versions on my system.

I deleted the old one and added the new reference to my project.

And now the reportviewer just works.

I guess you’ll have to trust me on this ;-).

I also noticed that the VS2010 update wizard does not update rdlc reports to the VS2010 format. But when you open an rdlc it will ask you to upgrade to the new format. If you decide to upgrade the report you will also need to upgrade the reportviewer which is not something it tells you at the time.