views:

17

answers:

0

Hi,

I've seen the Circular file references are not allowed. before and have been able to fix it using suggestion from e.g. this stackoverflow thread. That's because the aspnet_compiler was kind enough to tell me which files to look at when the error was thrown.

Today I'm facing this error again but interestingly enough only when building the RELEASE configuration of our Web Deployment Project (WDP) (which we use to precompile and publish our web application) - but I'm getting no hint whatsoever as to which files cause the circular reference. How can I get the aspnet_compiler to tell me where to look?

The only way to get around this error right now is to choose the Create a separate assembly for each page and control output option in the Property Pages of the WDP, but I assume that this equals setting batch=false in the compilation tag of web.config which is not recommended for production environments (via this thread on asp.net).

I've also tried using different versions of the aspnet_compiler (2.0, 4.0) and using the -d and -errorstack command-line switches but to no avail (the latter show the stack trace of the error but with no info about the currently processed file).

Any other ideas on how to get down to the relevant information in this error?