Author: GrantClements | Posted on: 2/10/2010 5:58:38 PM | Views : 1526

Hi There,
Essentially, what I'm trying to do is to pre-compile a web application that's using a VirtualPathProvider. This VirtualPathProvider returns VirtualFile objects whose Open method checks a configuration option, if the option is on then the open method retrieves the required ASPX/ASCX code from a database otherwise it retrieves the required code from a file physically located on the computer.
However, in order to speed up user-response for when a page is first visited, we ideally want to pre-compile all of these pages. My original plan was to use the ClientBuildManager, PrecompileApplication method to do this and as far as I can tell, this would work fine however, the PrecompileApplication method ALWAYS compiles the physical files regardless of the config options. As far as I can tell, the VirtualPathProvider is never even called by the PrecompileApplication method which I imagine makes it a little difficult to retrieve the files from the database.
D ...

Go to the complete details ...