report error

Last Reply on Apr 07, 2016 04:26 AM By moayyad

Posted on Mar 28, 2016 02:51 AM

Error    43    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\User\Documents\Visual Studio 2010\WebSites\WebSite4\Cpanel\Reports\pay.rdlc    1    

 

Posted on Apr 07, 2016 04:26 AM

hi

first iam sorry

but its same problem

the erorr shows in report any way i find the answer by tracking code

 

erorr is

CS0433: The type 'Microsoft.Reporting.WebForms.ReportViewer' exists in both 'c:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll' and 'c:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\9.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll'

 

Solution is

change Version  in html page code

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>