gpt4 book ai didi

msbuild - 发布时无法加载类型错误

转载 作者:行者123 更新时间:2023-12-04 04:39:40 25 4
gpt4 key购买 nike

尝试使用aspnet_compiler发布后出现以下错误

errorASPPARSE: Circular file references are not allowed.
errorASPPARSE: Unknown server tag 'uc2:FAQ'.
errorASPPARSE: Could not load type 'CompoundControls.BBar'.
errorASPPARSE: Could not load type 'CompoundControls.PPIndicator'.
errorASPPARSE: Unknown server tag 'm:Calendar'.
errorASPPARSE: Could not load type 'SharedUserControls.VCDetails'.
errorASPPARSE: Could not load type 'SharedUserControls.VPDetails'.
errorASPPARSE: Could not load type 'SharedUserControls.VPrDetails'.
errorASPPARSE: Could not load type '.PopupPaymentCardCCVHelp'.

任何想法如何解决它们

最佳答案

有几种原因会导致Circular file references are not allowed错误。

在不查看项目结构或代码的情况下很难查明确切原因。

但是,如果我要进行有根据的猜测,这是我会做的事情:

  • 查看下一个错误:Unknown server tag 'uc2:FAQ'.,似乎它不能编译该用户控件。
  • 此用户控件也很可能是此处的争论点。其余部分是UserControl未编译的结果。
  • 如果是这样,请检查用户控件中对母版页/其他任何页面的引用(类似于ascx文件中的<%@ Reference Control="~/app.master" %>)。

  • 也是,当您不知不觉进入这种情况时(通过 batching),会发生用户控制的不太明显的循环引用问题:
    PageA.aspx -> uc1.ascx -> PageB.aspx (batching) -> uc1.ascx -> PageA.aspx (batching)
    如果这是可能的原因,请尝试在配置中设置 batch=false :
    <configuration>
    <system.web>
    <!-- should prevent errorASPPARSE: Circular file references are not allowed -->
    <compilation batch="false" />
    </system.web>
    </configuration>

    希望这可以帮助。

    关于msbuild - 发布时无法加载类型错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/888478/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com