Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Scott McElroy 11 posts 32 karma points
    Nov 16, 2011 @ 21:14
    Scott McElroy
    0

    Courier 2.5 and ApplicationBase / Document events

    After installing Courier 2.5 (previously with 2.0 installed), we no longer see events firing from a class that inherits from ApplicationBase.

    public class UmbracoEventHandlers : umbraco.BusinessLogic.ApplicationBase
    {
            public UmbracoEventHandlers()
            {
                //Document Events
                umbraco.cms.businesslogic.web.Document.BeforeSave += Document_BeforeSave;
            }
            public void Document_BeforeSave(Document sender, SaveEventArgs e)
            {
                //event
            } }

    Anyone else experience the same issue?

    Un-installing courier 2.5 resolves the problem

     

  • Per Ploug 865 posts 3491 karma points MVP admin
    Nov 17, 2011 @ 09:16
    Per Ploug
    0

    Hi Scott, that sounds very odd, my guess is that a broken dependency or missing DLL is causing the reflection that manages applcationBase to break

    Check your umbracoLog for any exceptions, a common issue is the dll Castle.DynamicProxy2 which was part of Courier 2.0 but removed in Courier 2.5 due to changes in Nhibernate

    /Per

Please Sign in or register to post replies

Write your reply to:

Draft