Fixing the “circular file references are not allowed” Error in ASP.net

Fixing the “circular file references are not allowed” Error in ASP.net

 

 

To be more specific, I added a web.config in the directory that had pages with issues. That web.config file only has the following content:

<?xml version="1.0"?>

<configuration>
  <system.web>
    <!-- Added to prevent error ASPPARSE: Circular file references are not allowed. -->
    <compilation batch="false" />
  </system.web>
</configuration>

That way, Visual Studio/MSBuild can still batch compile the other non-affected directories, if it desires.

posted @ 2015-06-08 15:52  阿玛  阅读(558)  评论(0)    收藏  举报