【问题标题】:Uncaught Sys.InvalidOperationException: Sys.InvalidOperationException: 'CaptionText' is not a property or an existing field未捕获的 Sys.InvalidOperationException:Sys.InvalidOperationException:“CaptionText”不是属性或现有字段
【发布时间】:2021-09-26 23:47:44
【问题描述】:

当我在 rdlc 中运行报告时,我已经在 IIS 中上传了项目,它给了我这个错误 未捕获的 Sys.InvalidOperationException: Sys.InvalidOperationException: 'CaptionText' 不是属性或现有字段。

在本地主机报告工作正常

【问题讨论】:

  • 添加导致此异常的代码,包括CaptionText 声明。看起来 CaptionText 是一个字段,但需要一个属性。
  • 怎么做?

标签: .net asp.net-mvc iis model-view-controller rdlc


【解决方案1】:

您可以尝试在 system.webserver 部分的 web.config 中添加 ReportViewer HTTP 处理程序:

<system.webserver>
  <add name="ReportViewerWebControlHandler" 
     preCondition="integratedMode" verb="*"
     path="Reserved.ReportViewerWebControl.axd"
     type="Microsoft.Reporting.WebForms.HttpHandler"
     resourceType="Unspecified" />
</system.webserver>

【讨论】:

    猜你喜欢
    • 2017-03-22
    • 2013-08-01
    • 2016-11-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多