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.
Seems like IApplicationStartupHandler is executed before HTTP modules have a chance to run thus uCommerce is missing some initialization for looking up components.
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.
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.
Seems like IApplicationStartupHandler is executed before HTTP modules have a chance to run thus uCommerce is missing some initialization for looking up components.
is working on a reply...