Copied to clipboard

Flag this post as spam?

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


  • Bjarne Fyrstenborg 1284 posts 4038 karma points MVP 8x c-trib
    Aug 10, 2013 @ 16:25
    Bjarne Fyrstenborg
    0

    Using IApplicationEventHandler in v. 4.11.10

    Hi..

    I am trying to change change eventhandler in a project from using ApplicationBase to use IApplicationEventHandler related to this wiki: http://our.umbraco.org/wiki/reference/api-cheatsheet/using-iapplicationeventhandler-to-register-events

    I have included the references from a clean 4.11.10 Umbraco download, but Visual Studio doesn't seem to recognize the IApplicationEventHandler ?..

     

    Also in the wiki it says I should use using Umbraco.Web; for Umbraco 4.11.x .. I have one called Umbraco.Core and Umbraco.Web.UI .. I have added Umbraco.Web.UI as reference..

    /Bjarne

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Aug 10, 2013 @ 20:12
    Kevin Jump
    100

    IApplicationEventHandler is defined in Umbraco.dll in umbraco 4.11.10

    so you need to include umbraco.dll in your references.

    it's in the Umbraco.Web namespace so that bits ok.

    also the wiki appears to be getting phased out ? - looks like the equivalent doc is here now http://our.umbraco.org/documentation/Reference/Events/application-startup

  • Bjarne Fyrstenborg 1284 posts 4038 karma points MVP 8x c-trib
    Aug 11, 2013 @ 15:29
    Bjarne Fyrstenborg
    0

    Hi Kevin...

    Okay, I think I might have included a umbraco.dll and also interfaces.dll from before 4.10.x as I was working with ApplicationBase..

    I removed the references and included the dll files from 4.11.10 .. and also I noticed the build was set to .NET 3.5.. changed that to .NET 4.0 ... I think IApplicationEventHandler is using .NET 4.0 .. after these changes and rebuilding the project it works..

    /Bjarne

Please Sign in or register to post replies

Write your reply to:

Draft