"Does not implement IControllerFactory.CreateController" in Visual Studio 2010 RC

Posted by ripper234 on Stack Overflow See other posts from Stack Overflow or by ripper234
Published on 2010-04-10T13:57:24Z Indexed on 2010/04/10 14:03 UTC
Read the original article Hit count: 247

When compiling this code:

public class WindsorControllerFactory : IControllerFactory
{
    private readonly WindsorContainer _container;

    public WindsorControllerFactory(WindsorContainer container)
    {
        _container = container;
    }

    public IController CreateController(RequestContext requestContext,
                                        string controllerName)
    {
        return (IController)_container.Resolve(controllerName);
    }

    public void ReleaseController(IController controller)
    {
        _container.Release(controller);
    }
}

I am getting this error:

'WindsorControllerFactory' does not implement interface member 'System.Web.Mvc.IControllerFactory.CreateController(System.Web.Routing.RequestContext, string)'

Well, it obviously implements this member. Has anyone encountered this problem?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about .NET