我正在使用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和版本9的controlSetup.aspx到
`%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %`发布于 2011-04-28 15:45:43
VS 2010中的报表类依赖于更新的报告定义。听起来,您的报告是用早期版本的工具创建的。尝试在设计器中打开报表,看看它是否提示您将其升级到最新的定义版本。
https://stackoverflow.com/questions/5821036
复制相似问题