Copied to clipboard

Flag this post as spam?

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


  • Giuseppe 34 posts 56 karma points
    Nov 02, 2011 @ 10:10
    Giuseppe
    0

    ApplicationBase... Constructor is not called

    Hi All,
    I'm creating a new class in App_Code folder to capture an event in backoffice. As well, I've extend ApplicationBase in this way:

    public class MyClass : ApplicationBase {

    // Init variables

    public MyClass() {

    // Register event
    }

    }

    MyClass is called and so all variables initialized below, but its constuctor is not never called and I cannot register my event.

    Do you have any explanation for this strange behaviour?

    Thanks in advance
    Giuseppe

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Nov 02, 2011 @ 13:06
    Richard Soeteman
    0

    Hi Giuseppe,

    This should work.what is the Umbraco version you are using?

    Cheers,

    Richard

  • Giuseppe 34 posts 56 karma points
    Nov 02, 2011 @ 14:01
    Giuseppe
    0

    Solved, not umbraco issue!

    Thanks anyway

  • Murray Roke 467 posts 875 karma points c-trib
    Jul 31, 2012 @ 23:52
    Murray Roke
    0

    What was the issue, I'm having the same problem.

  • Murray Roke 467 posts 875 karma points c-trib
    Aug 01, 2012 @ 05:41
    Murray Roke
    0

    solved my own problem, somehow the class was marked as 'internal' duh

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies