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.

浙公网安备 33010602011771号