Precompile.axd in ASP.NET 1.1 with System.Web.Handlers.BatchHandler: A harbinger of ASP.NET 2.0 left vestigially in 1.1?
I'm surprised I'm just now noticing this. Jon Galloway hooked up the apparently unused System.Web.Handler.BatchHandler to an httpHandler and was able to precompile all his .ASPX pages. This could be useful during deployment to catch any goofs in ASPX code. Certainly not something you want on in production lest you be DoS'ed with compilation, but a helpful thing regardless.
To set this up at the machine level, add the following line to the <httpHandlers> section of %windir%\Microsoft.NET\Framework\v1.1.4322\CONFIG\machine.config:
<add verb="*" path="precompile.axd" type="System.Web.Handlers.BatchHandler"/>
To set this up at the application level, add the you'll need to create an httpHandlers section like so: [JonGalloway]
<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="precompile.axd" type="System.Web.Handlers.BatchHandler"/>
</httpHandlers>
</system.web>
</configuration>
Now playing: Stevie Wonder - As
About Scott
Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.
About Newsletter
Comments are closed.