Hello,

I had a project on MVC3 and an older Windsor Castle version 3.2.0. It was 
working just fine. I upgraded to MVC4 from MVC3 and got the latest version 
of Windsor Castle from Nuget version 3.2.1

I get this error.

*Missing dependency.*
*
*
*Component Sagas.SagaRegistry has a dependency on Sagas.Saga[], which could 
not be resolved.*
*
*
*Make sure the dependency is correctly registered in the container as a 
service, or provided as inline argument.*


*So, here is my SagaRegistry class's constructor.*

public class SagaRegistry : ISagaRegistry
    {
        private readonly ISagaFinderFactory _finder;
        readonly Dictionary<Type, List<Action<object>>> _interestedManagers 
= new Dictionary<Type, List<Action<object>>>();
        
        public SagaRegistry(Saga[] sagas, ISagaFinderFactory finder)
        {
         ........
        }

*here is my Saga class...*

public abstract class Saga
    {
        public bool IsCompleted { get; private set; }

        protected void MarkAsCompleted()
        {
            IsCompleted = true;
        }
    }

    public abstract class Saga<TData> : Saga
    {
        public TData Data { get; set; }
    }

*here is my Registration in the container*

            container.Register(Classes.FromAssemblyInDirectory(new 
AssemblyFilter(HttpRuntime.BinDirectory))
                                   .Where(t => t.IsSaga())
                                   .WithServices(typeof (Saga))
                                   .WithServiceSelf()
                                   .LifestyleTransient());

*here is more registration for other components with Saga related stuff*

            AutomappingConfiguration.IsEntityPredicate = t =>
                t.IsDefined(typeof(DomainEntityAttribute), true) ||
                t.IsDefined(typeof(SagaDataAttribute), true);


*Here is my Array resolver addition...*

container.Kernel.Resolver.AddSubResolver(new 
ArrayResolver(container.Kernel));



Like I said, it was working just fine. It broke after I started using it in 
MVC4 and the latest version from NUGET.

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to