I just upgraded my site to 7.4.0 and have found that code in OnApplicationStarted and OnApplicationInitialized events gets called twice.
Here's a simplified OnApplicationInitialized
public void OnApplicationInitialized(UmbracoApplicationBase umbracoApplication,
ApplicationContext applicationContext) {
//Add handler to intercept media pickers to allow us to set start point according to parent's settings
GlobalConfiguration.Configuration.MessageHandlers.Add(new cmsHoR.App_Code.MediaPickerExtension());
LogHelper.Info<ParliamentEvents>("Added Web handler for MediaPickerExtension");
}
When recycling the App pool I can see that this line gets logged twice:
Hmm. Seems part of my web.config got mangled in the upgrade process and I had semi-colon in one of my entries under system.web.webPages.razor/pages/namespaces in the Views/web.config.
ApplicationEvents firing twice in 7.4.0
Hi All,
I just upgraded my site to 7.4.0 and have found that code in OnApplicationStarted and OnApplicationInitialized events gets called twice.
Here's a simplified OnApplicationInitialized
When recycling the App pool I can see that this line gets logged twice:
Is anyone else seeing this?
TIA
Ver
Just tested this with this code:
It gets logged only once for me.
Hmm. Seems part of my web.config got mangled in the upgrade process and I had semi-colon in one of my entries under system.web.webPages.razor/pages/namespaces in the Views/web.config.
Thanks for testing and letting me know.
Regards
is working on a reply...