ASP.NET Pre-Compilation

Tags: asp.net c#
When deploying a web application for production you'll most likely be pre-compiling it for security and speed but be aware of one misleading feature of pre-compiling: the web.config.

Although the web.config is left in place and can be edited not all the changes you put into it will work after deployment. During pre-compilation some of the settings in the web.config are compiled into the binaries (such as the Profiles sections), so even though you are changing the section in the web.config it will not show up in your application.

The way to get around this is to choose to make the site 'updateable' when publishing. This option is not there for Web Application projects so you have to use the Web Deployment Project Add-in from Microsoft. Comments
2010-03-09 09:30:27 - add url online

Thanks again for a nice site.

2010-03-10 08:43:59 - Ofelia Wedi

Hi i just came across your site from Google and been reading some of your posts and just wondering why you chose a Blog Engine blog dont you find it hard to do anything with?

2010-03-14 18:40:41 - buy jordans

Thanks so much mate!