1.x To 2.0 Migration Tip: Temporarily Disable Batch Compilation
If you’ve read through various migration HOW-TOs, you might’ve noticed a suggestion to turn off batch compilation and rebuild your project to see if any compilation errors come up. This is a very important point as the
<compilation> section in web.config is a tricky one.
Here’s what an MSDN article suggests:
Open the web.config file and turn batch compilation off and re-compile that application to see if any further compilation errors might exist. This can be done by setting the
batch=falseattribute in the compilation tag as such:
<compilation debug="true" batch="false"/>. Turning off batch compilation may expose masked compilation errors that may exist in the application but are not reported.
batch=falseattribute should only be added to find such errors and then reverted once any additional compilation errors are fixed. Leaving
batch=falsein the compilation section has significant performance impact on build times for the application in Visual Studio 2005, so make sure you remove this attribute after doing this check.
More reading on this subject: