Copied to clipboard

Flag this post as spam?

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


  • MK 426 posts 902 karma points
    Jul 14, 2013 @ 14:56
    MK
    0

    ApplicationStartupHandler is Obsolete

    Hi there,

    Im trying to implement uMapper. Howere, the ApplicationStartupHandler  is Obsolete but when using IApplicationEventHandler or ApplicationEventHandler I get the following error:

     Resolution is not frozen, it is not yet possible, to get gains

    Any Ideas?

    Regards,

    mkariti

  • Jeroen Breuer 4811 posts 11890 karma points admin mvp c-trib
    Jul 14, 2013 @ 20:52
    Jeroen Breuer
    0

    The ApplicationStartupHandler is 4.10+, but there are other ways to do the same: http://our.umbraco.org/Documentation/Reference/Events/application-startup

    Jeroen

  • Shannon Deminick 1396 posts 4635 karma points core hq
    Jul 15, 2013 @ 04:46
    Shannon Deminick
    0

    It's most likely because you are trying to do something during a specific part of the boot process that is not allowed. The doc link that Jeroen posted contains the information you will require.

  • MK 426 posts 902 karma points
    Jul 15, 2013 @ 07:46
    MK
    0

    Im trying to ini the map creation for umapper.

    I cant seems to get it working.

    Any idea?

    Cheers

  • Shannon Deminick 1396 posts 4635 karma points core hq
    Jul 15, 2013 @ 07:48
    Shannon Deminick
    0

    Sorry, have not used umapper, not sure what it does. What's the init code supposed to be ?

    In most cases, like the docs say, you should put your init code in the ApplicationStarted method. 

  • Pierre 2 posts 22 karma points
    May 25, 2014 @ 19:58
    Pierre
    0

    Hi,
    I'm comming quite late but I'll post my solution for other readers (works with U 7.1.3 with uComponents 6)

        public class ApplicationEvent : IApplicationEventHandler
        {
            public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
            {
                uMapper.CreateMap<umbMaster>();
                uMapper.CreateMap<umbTextPage>();
                //Other mapping here...
                uMapper.CachingEnabled = true;
            }
        }   

Please Sign in or register to post replies

Write your reply to:

Draft