Article ID: 937095 - Last Review: June 21, 2007 - Revision: 1.1 The Global.asax file does not raise events in an ASP.NET 2.0 applicationOn This PageSYMPTOMSThe 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. CAUSEThis behavior occurs because the Global.asax file is not precompiled. RESOLUTIONTo resolve this behavior, use one of the following methods. Method 1Delete the Global.asax file from the ASP.NET 2.0 application root directory.Method 2Compile the ASP.NET 2.0 application.STATUS This behavior is by design. MORE INFORMATIONThe 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. REFERENCESFor more information about the Global.asax file, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/2027ewzw.aspx
(http://msdn2.microsoft.com/en-us/library/2027ewzw.aspx)
| Article Translations
|

Back to the top
