Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I have created one report in visual studio 2010. While running the project the system showing following error.

"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. C:\Users\Amma\documents\visual studio 2010\Projects\AMS\ReportVendor.rdlc "

I have checked for the same issue nothing was working. I tried to change the Microsoft.ReportViewer version to 10. But nothing happend.


Someone pls help me with this.

Thanks.
Posted
Updated 4-Dec-19 5:20am
Comments
CHill60 20-May-15 8:08am    
If you navigate to C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\ReportingServices and examine the file Microsoft.ReportingServices.targets what does the line that starts "UsingTask ..." say?
Sarath kumar.N 20-May-15 8:19am    
Yeah, I tried to change that from version 9 to 10. But that also showing another error.
CHill60 20-May-15 8:25am    
"another error" ?? What is the "other error"?
Sarath kumar.N 20-May-15 8:30am    
Error 1 The "Microsoft.Reporting.RdlCompile" task could not be loaded from the assembly Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Confirm that the <usingtask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. AMS
CHill60 20-May-15 8:33am    
Sounds like the ReportingServices isn't installed properly - check your references first to make sure you're pointing at the correct dll and if that isn't the problem try re-installing - http://www.microsoft.com/en-in/download/details.aspx?id=6442[^]

Copied the Microsoft.ReportingServices.target file from the other system. Now it's working fine.

Full path: C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\ReportingServices
 
Share this answer
 
How do we make this report work on older version of reporting ? You need to make 2 changes in to the RDL file to get it working.

1. Open the RDL file using notepad or other editing tools ,you will find something like below in the beginning of the code.

image

change the version from 2016 to 2010 .

2. Search for "ReportParametersLayout" in file and remove the whole block (This code is created on 2016 version of visual studio) .

As shown below ,remove the whole block and save the report.

image

Now try to upload the RDL file into the reporting service ,change the data source and run the report.

Conclusion:

change the SQL version on the RDL file and remove the ReportParametersLayout to get the report working.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900