【问题标题】:Could not load type 'System.Web.UI.ParseChildrenAttribute' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50无法从程序集“System.Web,版本=4.0.0.0,文化=中性,PublicKeyToken=b03f5f7f11d50”加载类型“System.Web.UI.ParseChildrenAttribute”
【发布时间】:2021-12-19 13:28:59
【问题描述】:

我的 ASP.NET MVC Core 3.0 应用程序运行良好, 运行应用程序时突然遇到错误。

无法加载类型“System.Web.UI.ParseChildrenAttribute” 从程序集'System.Web,版本=4.0.0.0,文化=中性, PublicKeyToken=b03f5f7f11d50a3a

我正在使用 IIS Express 和 Visual Studio 2019。 附上错误截图:

【问题讨论】:

    标签: c# asp.net-core-mvc runtime-error visual-studio-2019


    【解决方案1】:

    你在asp.net核心项目中使用的是CrystalReport吗?目前 .net core 不支持 System.Web.UI.ParseChildrenAttribute。

    参考:

    https://answers.sap.com/questions/13054071/is-crystal-report-support-net-core-31.html

    ParseChildrenAttribute Class

    也许你可以使用 dotnet Report,使用 dotnet 报告生成器,最终用户可以通过一个非常友好和直观的报告向导来决定将哪些字段添加到报告中,如何格式化等。这一切都在您的应用程序内部完成,因此无需导出数据或运行其他程序:

    https://dotnetreport.com/kb/docs/getting-started/introduction/

    您还可以参考本文中提到的一些报告工具:

    What is the best way to produce the report in asp.net core?e

    【讨论】:

    • 是的,我正在尝试运行水晶报表。这意味着我们无法在 ASP.NET MVC 核心应用程序中运行水晶报表。您能否建议任何其他报告方式。
    • 试试我的更新内容。
    猜你喜欢
    • 2021-10-13
    • 2016-12-14
    • 2017-03-07
    • 2018-02-05
    • 2016-11-19
    • 1970-01-01
    • 2020-03-08
    • 2014-12-19
    相关资源
    最近更新 更多