Reputation: 21
I have a classlibrary project, then add a new empty report .rdlc, when compiled throw this error
"The report definition is not valid. Details: the report definition has an invalid target namespace 'http://schemas.microsoft.sqlserver.reporting/2008/01/reportdefinition' which cannot be upgraded"
This cannot be the reportviewer because is a dll, what should do i for fix it?
the reportviewer 2010 is also installed
Upvotes: 2
Views: 4085
Reputation: 1423
I had a similar issue today and I found solution here. Thanks Jim Lafler.
My "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\ReportingServices\Microsoft.ReportingServices.targets" file had changed
In the top was:
<UsingTask TaskName="Microsoft.Reporting.RdlCompile" AssemblyName="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
and it should have been:
<UsingTask TaskName="Microsoft.Reporting.RdlCompile" AssemblyName="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Upvotes: 5
Reputation: 1701
Try changing the namespace. Open your .rdlc file in text/xml editor and change the namespace to
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"
Upvotes: 1