How might one turn off precompilation in IIS?

10,259

Web.config

<compilation batch="false" />

Indicates whether batching is supported. If True, eliminates the delay caused by the compilation required when you access a file for the first time. When this attribute is set to True, ASP.NET precompiles all the uncompiled files in a batch mode, which causes an even longer delay the first time the files are compiled. However, after this initial delay, the compilation delay is eliminated on subsequent access of the file. The default is True.

https://msdn.microsoft.com/library/s10awwz0.aspx

In IIS 7

To Use the UI Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).

In Features View, double-click .NET Compilation.

On the .NET Compilation page, edit settings as necessary.

When finished, click Apply in the Actions pane.

http://technet.microsoft.com/en-us/library/cc725812(v=ws.10).aspx

Share:
10,259

Related videos on Youtube

FlavorScape
Author by

FlavorScape

Listen to the album, Bitwize Operata Now! Music Videos: Decompiled A song about the development industry Rigid Body Physics learn how to make a rigid body physics engine I make drawings. Lots of drawings. See them here: ForeverScape.com Gihub: https://github.com/ForeverScape

Updated on June 04, 2022

Comments

  • FlavorScape
    FlavorScape almost 2 years

    I'm trying to avoid having compile errors block the whole ASP site while we are in development. That is, I want each page to compile on first run instead of the whole site so that compile errors do not show up globally. That can be danged annoying when a dev takes off for lunch after saving with a systnax bleherror.

    I've tried adding this to ye olde web config (changed from default "Always"):

    <pages compilationMode="Auto" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> 
    

    This did not have the desired effect. What can I change in the webconfig or using IIS to disable precompilation?

    • FlavorScape
      FlavorScape over 8 years
      @Nuzzolilo hah, this was years ago. we had a small staff and had not setup our deployment pipeline yet to run tests, compile etc. It was literally check in to dev branch and dev environment would just pull regardless of errors. I had some devs that would mess up occasionally blocking us. You know, the junior dev check-in-and-go-home syndrome.