Just so everyone knows I've solved this issue (with the help of Scott Guthrie and team).
Turns out that in the web deployment project I had this attribute set: <DeleteAppCodeCompiledFiles>true</DeleteAppCodeCompiledFiles> This means delete the App_global.asax.compiled and App_Code.compiled files. These files are necessary for the Global.asax to connect to the code that wires up its events. Because I was deleting these files, I never thought to deploy them which was the root of the problem. Ryan -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Georg Jansen Sent: Thursday, January 12, 2006 2:51 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Application_Error and WebDeployment Did the same, and it is working. I believe the global.ascx.cs file have to be placed in the App_code directory, also make sure that the reference to the codebehind in Global.asax is correct (CodeBehind="App_Code\Global.asax.cs) Best regards Georg www.l4ndash.com - Log4Net Dashboard / <http://www.l4ndash.com/> Log4Net Viewer -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Reid Sent: 12. januar 2006 23:41 To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] Application_Error and WebDeployment We're using the new WebDeployment project and building our web project so that it gets built into a single assembly. There is a Global.asax page with an Application_Error handler in it. (This handler logs the error). However, this handler is never called. The project was upgraded from 1.1 where everything worked fine. Any help greatly appreciated. Ryan =================================== This list is hosted by DevelopMentor. http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor. http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com