We recently had some discussions regarding our build server setup and how we need to alter some web.config items when doing release builds. One of the primary things that we wanted to ensure is that the compilation of asp.net files is not set to debug, which is the default.
<system.web>
<compilation defaultLanguage="c#" debug="false"/>
</system.web>
More Info: