I'm wondering if anyone has tried using the Nested Container feature from StructureMap in an Episerver website.
StructureMap recommends using nested containers to ensure object lifecycles are scoped to an http request, instead of using some of the legacy lifecycles such as HybridHttpOrThreadLocalScoped.
I tried to implement this in the Alloy sample website using the latest StructureMap.MVC5 nuget package and integrate it with the Container provided through the ConfigureContainer method in an IConfigurableModule module. The website seems to work fine until I hit one of the landing pages where I get this error. I suspect it is failing over when there are child controllers involved in the request pipeline.
Any thoughts?