I am building a set of class libraries that produce office open xml based reports and I am using a static Windsor IoC container.
My problem is that one possible entry point to the reporting system is via a web front end which means that the reporting systems static IoC Container is being shared amongst multiple web requests which causes exceptions as for each new request the reporting system is trying re-register components in Windsor that were already registered by an earlier request.
I dont want to move the registration into the web app global.asax as my reporting system will no longer be stand-alone.
How can I have a Windsor IoC container that can be shared amongst my reporting classes but not shared across multiple web requests?