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

My Visual Studio Application Upgraded from Visual Studio 2012 to Visual Studio 2022. All my existing reports working in the development machine as well as Live server. if i create a new RDLC reports it works in the development machine but shows the below error in the Live Server.

The report definition is not valid or supported by this version of Reporting Services. 
This could be the result of publishing a report definition of a later version of Reporting Services, 
or that the report definition contains XML that is not well-formed or the XML is not valid based on the 
Report Definition schema. Details: The report definition has an invalid target namespace 
'' which cannot be upgraded.

The above error shows in this line.

rep.SetParameters(new ReportParameter[] { p });

What I have tried:

I did Installed Visual studio 2022 then download and installed 2022 RDLC report from visual studio 2022 in the Live server.

Copied the below same version of Reportviewer DLL's from the Development machine Application Bin folder into Live server Application Bin folder

version: 15.0.1509.0
version: 15.0.1509.0

version: 2016.140.100.187
Updated 22-May-23 1:37am

1 solution

It seems that you have updated your VS version as well as all other plug-ins on your local machine. When running on server, it is still making use of outdated versions which is not supported.

Either revert back to an older working version if you do not have access to your server to update the versions or update the server version.
Share this answer
RobymonK 22-May-23 8:11am    
New Version of RDLC report working in the Development machine, but that report not works in the live server. so, something is missing.
Andre Oosthuizen 23-May-23 4:55am    
Hence my answer, you are using a new version of RDLC on your development machine and all works fine, on your server you are making calls to a newer version of RDLC but you still have a OLD version on your SERVER, it will fail!

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