Circular file references not allowed

后端 未结 15 1889
没有蜡笔的小新
没有蜡笔的小新 2020-12-18 19:10

I am having a problem in building my solution in VS2008. Normally, it compiles fine in the environment. Sometimes, it fails with:

/xxx_WEB/secure/CMSManagedT         


        
相关标签:
15条回答
  • 2020-12-18 19:49

    This bug still exists in ASP.NET 4.0.

    The error I got was:

    /DirA/PageA.aspx(3): error ASPPARSE: Circular file references are not allowed.
    /DirA/PageA.aspx(71): error ASPPARSE: Unknown server tag 'Controls:ControlA'.
    

    ControlA was the same control as referenced on PageA.aspx(3). I found that I had to move ControlA into the same directory as PageA in order to make this error stop.

    0 讨论(0)
  • 2020-12-18 19:49

    for me these tricks did not work

    -setting batch=true -deleting asp.net Temp files and IIS reset -replacing suspicious ascx files

    and the problem was from referencing a recent added project to my solution and unloading it after final build .and removing reference to this newly added library solved the problem

    0 讨论(0)
  • 2020-12-18 19:52

    I had similar issue, and got a close clue from @JBicford's answer. I was using Default.aspx on root of website using Master.master in another folder. Don't know if that can cause that, haven't tested this solution yet.

    But for someone who is interested in getting publishing problem sort out, below option works for VS 2012, all other options fail because of incorrect dependencies on other folders and pages.

    enter image description here

    0 讨论(0)
提交回复
热议问题