first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

ASP.NET: “The Global.asax file does not raise events in an ASP.NET 2.0 application”; KB Article 937095

KB Article 937095 “The Global.asax file does not raise events in an ASP.NET 2.0 application” addresses a possible problem that is likely to occur in my little ASP.NET corner of the world but has not happened yet.

http://support.microsoft.com/kb/937095

“The Global.asax file does not raise events in a Microsoft ASP.NET 2.0 application. Additionally, the App_global.asax.dll file is not generated in the temporary ASP.NET folder… This behavior occurs because the Global.asax file is not precompiled.”

“The ASP.NET 2.0 application root directory contains a file that is named the PreCompiledApp.config file. The PreCompiledApp.config file tracks the deployment of an application, and the PreCompiledApp.config file informs ASP.NET 2.0 if ASP.NET 2.0 must compile any files at request time. The standard contents of the PreCompiledApp.config file are as follows.”

<precompiledApp version="2" updatable="true"/>

“The updatable attribute that is set to the true value applies to ASP.NET pages (.aspx files) and to user controls (.ascx files). The value does not apply to ASP.NET 2.0 application files (.asax files). Therefore, the Global.asax file is compiled, and the Global.asax file is not updatable.”

mod date: 2007-06-30T03:19:13.000Z