我正在使用vs2010并收到此错误“报告定义具有无效的目标命名空间'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition',无法升级。”在打电话时
renderedBytes = localReport.Render(
reportType,
deviceInfo,
out mimeType,
out encoding,
out fileNameExtension,
out streams,
out warnings);
有什么建议吗?
更新
我的项目中有一个旧的rdlc文件。必须将web.config更改为
add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
从版本9和controlSetup.aspx版本9到
%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %
答案 0 :(得分:0)
VS 2010中的报告类依赖于较新的报告定义。听起来你有一个使用早期版本的工具创建的报告。尝试在设计器中打开报告,看看它是否会提示您将其升级到最新的定义版本。