Try our conversational search powered by Generative AI!

EPiServer 7 MVC with Windsor Container



I'm trying to install EPiServer 7 on an existing MVC site. However I've hit a problem with the IoC Container. Currently the site is using the Windsor container, however I gather that EPiServer 7 uses StructureMap internally.

Do you think there is any way Windsor could be retained as the Container or will I need to replace it completely with StructureMap?

Thanks, Mike



Feb 13, 2013 19:39

Although I haven't tried it personally you should be able to run windsor and SM side-by-side.

If you keep the windsor container and you want to inject something EPiServer-specific you'd have to handle those registrations yourself. Dependening on your setup with your current container and the number of registrations you are interested in from EPi's container you could either register those manually or build some windsor plugin that checks itself for dependencies first and delegates to EPi's container if the dependency is not found.

Feb 13, 2013 19:56
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.