We noticed the Application_Start
in the Global asax
is no longer hit after the upgrade to Sitecore 8.2
.
Does anyone have an idea what may have caused this?
My global.asax.cs:
public class Global : Sitecore.Web.Application
{
protected void Application_Start()
{
// some code
}
}
Global.asax:
<%@ Application Codebehind="Global.asax.cs" Inherits="[namespace].Global" Language="C#" %>
Edit:
In order to be sure the Application_Start is not hit I did a few tests:
- Added a System.Diagnostics.Debugger.Break();
- Edited the Global.asax file while the debugger was attached
- Threw an exception
None of the above were successful.
The target framework is set to 4.6
Application_Start
is executed then. Don't use exceptions to check if it's executed (you won't necessarily see them and the app will start anyway). Instead, useDebugger.Break()
or write to a file on disk, or something similar.