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..
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..
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
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
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
is working on a reply...