开发者

.RDLC and VS2010

开发者 https://www.devze.com 2023-03-21 05:29 出处:网络
I have开发者_运维知识库 a classlibrary project, then add a new empty report .rdlc, when compiled throw this error

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


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"/>


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"
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号