【问题标题】:Circular file references are not allowed Dnn 7+ in TFS 2013TFS 2013 中不允许循环文件引用 Dnn 7+
【发布时间】:2015-06-04 17:47:54
【问题描述】:

我将 DNN 7.3 用于结合了 VB 和 C# 代码的网站项目。我使用 Visual Studio 2013 来构建项目。 如果属性页中的 MSBuid 选项配置为允许此预编译站点可更新并且项目已发布。 会有一个成功的构建。但是当它签入到 TFS 时,会抛出以下异常:

 /compiled/DesktopModules/Admin/Security/manageusers.ascx (8): Circular file references are not allowed.
 /compiled/DesktopModules/Admin/Security/manageusers.ascx (67): Unknown server tag 'dnn:profile'.
 /compiled/DesktopModules/Admin/Security/EditUser.ascx (5): Circular file references are not allowed.
 /compiled/DesktopModules/Admin/Security/EditUser.ascx (163): Unknown server tag 'dnn:Profile'.
 /compiled/admin/Users/ViewProfile.ascx (4): Unknown server tag 'dnn:Profile'.

此外,当我选中使用固定命名和单页程序集以及允许此预编译站点可更新时。它会抛出:

ASPNETCOMPILER: Object reference not set to an instance of an object.

当我在网上搜索时,我得到了来自this blog的两个选项。

我已经尝试了这两个,但仍然有同样的错误。 我不知道我做错了什么。

【问题讨论】:

    标签: asp.net visual-studio-2013 dotnetnuke


    【解决方案1】:

    请查看 [此处] (http://ellisweb.net/2009/12/fixing-the-circular-file-references-are-not-allowed-error-in-asp-net/) 了解为什么会看到此错误,简单来说,如果您有以下设置:

    /folder1/Control1.ascx > References Control2
    /folder2/Control2.ascx > References Control3
    /folder1/Control3.ascx
    

    这意味着文件夹 1 dll 将引用文件夹 2 dll,文件夹 2 dll 将再次引用文件夹 1 dll,从而导致“循环文件引用”。

    解决方法是尝试重新排列每个文件夹下的所有控件,有时,您必须将有问题的用户控件复制到多个文件夹以防止此类循环调用。

    【讨论】:

      【解决方案2】:

      我将 TFS 构建过程参数的 Clean WorkSpace 属性更改为 false。 错误刚刚消失,我能够成功构建到 TFS Drop 文件夹中。我不知道为什么这解决了问题,但问题已经解决了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-12-22
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多