Copied to clipboard

Flag this post as spam?

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


  • Matt Whetton 19 posts 61 karma points
    Feb 04, 2014 @ 12:28
    Matt Whetton
    0

    DI (with Windsor), Surface Controller and CurrentUmbracoPage Problem

    Hi,

    We've got our umbraco (v7) site working pretty well with castle windsor - its is configured in the global.asax something like this:

                _container = new WindsorContainer().Install(FromAssembly.This());

                WindsorControllerFactory.Kernel = _container.Kernel;

                Umbraco.Web.Mvc.FilteredControllerFactoriesResolver.Current.InsertType<WindsorControllerFactory>();

    This is working for the most part but we are having a problem CurrentUmbracoPage. The problem is that when we return CurrentUmbracoPage we get this error:

    "No component for supporting the service Umbraco.Web.Mvc.RenderMvcController was found"

    It appears that umbraco is routing a request for the component RenderMvcController to our WindsorControllerFactory, even though the factory isn't going to be able to resolve it.

    Am I missing something?

     

Please Sign in or register to post replies

Write your reply to:

Draft