RDLC文件返回LocalProcessingException错误

时间:2014-03-06 15:44:23

标签: c# .net xml visual-studio-2010 rdlc

当我尝试呈现.rdlc文件时,我收到了

  

LocalProcessingException未被用户代码

处理

我查看了我的C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\ReportingServices\Microsoft.ReportingServices.targets文件,内容为:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <UsingTask TaskName="Microsoft.Reporting.RdlCompile" 
              AssemblyName="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>"

我正在使用Visual Studio 2010并以.NET Framework 4.0为目标。当我深入研究错误时,我发现错误:

  

报告定义无效   详细信息:报表定义具有无效的目标名称空间“http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition”,无法升级。

任何帮助将不胜感激。

谢谢。

1 个答案:

答案 0 :(得分:0)

我通过我的更改工作,发现我无意中将RDLC转换为RDLC 2008,从而导致错误。