LocalProcessingException 未处理

LocalProcessingException was unhandled

正在尝试测试我的报告,然后出现错误消息:

An unhandled exception of type 'Microsoft.Reporting.WinForms.LocalProcessingException' occurred in Microsoft.ReportViewer.WinForms.dll Additional information: An error occurred during local report processing."

知道为什么我会遇到这样的错误吗?!

您正在使用 VS2010InnerException 表示:

The report definition is not valid. Details: The report definition has an invalid target namespace 'schemas.microsoft.com/sqlserver/reporting/2008/01/…; which cannot be upgraded.

因此您必须使用正确的 ReportViewer 库,即 10.0