Dynamic compilation
Dynamic compilation
ASP.NET should save files in the cache after compilation and recompile only when something changes. Because MSDN says:
Any changes in the dynamically compiled file will automatically invalidate the file with the compiled assembly cache and the trigger will recompile all the affected resources
Most likely, in your case, dynamic compilation affects itself in such a way that it causes recompilation, like in a loop.
Have you checked the dynamic compilation optimization?
If you want to be able to modify top-level files without calling the entire site to be recompiled, you can set the optimizeCompilations attribute of the compilation element in the Web.config file true .
Note. For use in the .NET Framework 3.5, a fix is required to use this option.
entrance
Do you already have a registration solution connected to the asp.net infrastructure?
The minimum to be able to investigate problems is ConsoleLogger (visible from a web browser) or Logger writes log events to a file .
Then you should configure LogLevel as a minimum: Debug or Verbose should do the trick.
There are also several third-party protocols that can be connected to System.Diagnostics to provide more features.
General tips
If you have a problem with an error, for example, recompile in a loop, try to reproduce it on the developer's machine. It will be easier to debug the recompilation process step by step. This article about what happens during recompilation can help you. In general, the deployment and compilation process is even more complete, but for ASP.NET 2.0
If you have performance problems, you should profile your website on the developer's machine, a pin-point where there are real performance problems and a fix.