Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Tommy Albinsson 121 posts 254 karma points
    Mar 24, 2013 @ 18:30
    Tommy Albinsson
    0

    using uCommerce 3 in IApplicationStartupHandler throws exception

    When we upgraded to uCommrce 3 we started getting this exception when trying to generate a index for all our products in a custom class implementeing IApplicationStartupHandler. The version of umbraco is 6.0.2 and uCommerce 3.0.8.

    Looks like you forgot to register the http module Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule
    Add '' to the  section on your web.config. If you're running IIS7 in Integrated Mode you will need to add it to  section under 

    Any ideas?

    EDIT: I can add that it does work if you put the init of the index in a razor file , but I would like to know why it does not work in the IApplicationStartupHandler anymore.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 10, 2013 @ 11:49
    Søren Spelling Lund
    0

     

    Seems like IApplicationStartupHandler is executed before HTTP modules have a chance to run thus uCommerce is missing some initialization for looking up components.

Please Sign in or register to post replies

Write your reply to:

Draft