I figured this out. My repository didn't inherit the interface. Thanks.
On Jun 26, 8:20 pm, cnichols <[email protected]> wrote: > Hey Guys, > > I'm using the Windsor controller factory in a .net mvc project and > have an error that is driving me nuts. The factory errors when > instantiating one of my controllers but works fine with the other 5 > controllers. I've compared the code in the failing controller to my > working controllers and everything is the same. I checked and > rechecked my interface, repository and entity and everything looks > good. > > Although the stack trace is listed below I don't suspect this is > enough information to solve the problem. Can somebody point me in the > right direction? > > STACK TRACE > > System.Exception was unhandled by user code > Message="GetControllerInstance: > type=ProgramProductRelationsController Message: ComponentActivator: > could not instantiate > RepFolio.Controllers.ProgramProductRelationsController" > Source="RepFolio" > StackTrace: > at WebUI.WindsorControllerFactory.GetControllerInstance(Type > controllerType) in C:\RepFolio\RepFolio\RepFolio > \WindsorControllerFactory.cs:line 53 > at System.Web.Mvc.DefaultControllerFactory.CreateController > (RequestContext requestContext, String controllerName) > at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase > httpContext) > at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext > httpContext) > at > System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest > (HttpContext httpContext) > at > System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute > () > at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, > Boolean& completedSynchronously) > InnerException: > > WEB.CONFIG > > <component id="ProgramProductRelationsRepository" > service="DomainModel.Abstract.IProgramProductRelations, > DomainModel" > > type="DomainModel.Concrete.SqlProgramProductRelationsRepository, > DomainModel" > lifestyle="PerWebRequest"> > <parameters> > <connectionString>Data Source=sv2880;Initial > Catalog=RepFolio;Uid=XXX;Pwd=XXX;</connectionString> > </parameters> > </component> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
