Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ninject.ActivationException: Error activating ModelValidatorProvider using binding from ModelValidatorProvider to NinjectDefaultModelValidatorProvider
- A cyclical dependency was detected between the constructors of two services.
- Activation path:
- 3) Injection of dependency ModelValidatorProvider into parameter defaultModelValidatorProviders of constructor of type DefaultModelValidatorProviders
- 2) Injection of dependency DefaultModelValidatorProviders into parameter defaultModelValidatorProviders of constructor of type NinjectDefaultModelValidatorProvider
- 1) Request for ModelValidatorProvider
- Suggestions:
- 1) Ensure that you have not declared a dependency for ModelValidatorProvider on any implementations of the service.
- 2) Consider combining the services into a single one to remove the cycle.
- 3) Use property injection instead of constructor injection, and implement IInitializable
- if you need initialization logic to be run after property values have been injected.
- STACK:
- [ActivationException: Error activating ModelValidatorProvider using binding from ModelValidatorProvider to NinjectDefaultModelValidatorProvider
- A cyclical dependency was detected between the constructors of two services.
- Activation path:
- 3) Injection of dependency ModelValidatorProvider into parameter defaultModelValidatorProviders of constructor of type DefaultModelValidatorProviders
- 2) Injection of dependency DefaultModelValidatorProviders into parameter defaultModelValidatorProviders of constructor of type NinjectDefaultModelValidatorProvider
- 1) Request for ModelValidatorProvider
- Suggestions:
- 1) Ensure that you have not declared a dependency for ModelValidatorProvider on any implementations of the service.
- 2) Consider combining the services into a single one to remove the cycle.
- 3) Use property injection instead of constructor injection, and implement IInitializable
- if you need initialization logic to be run after property values have been injected.
- ]
- Ninject.Activation.Context.Resolve() +158
- Ninject.<>c__DisplayClass15.<Resolve>b__f(IBinding binding) +86
- System.Linq.WhereSelectListIterator`2.MoveNext() +108
- System.Linq.<CastIterator>d__b1`1.MoveNext() +85
- System.Linq.WhereEnumerableIterator`1.MoveNext() +85
- System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +381
- System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
- Ninject.Web.WebApi.Validation.NinjectDefaultModelValidatorProvider..ctor(IKernel kernel, DefaultModelValidatorProviders defaultModelValidatorProviders) +201
- DynamicInjectorad40730ed1ff4b5d8bb0f7af4a89da73(Object[] ) +171
- Ninject.Activation.Providers.StandardProvider.Create(IContext context) +884
- Ninject.Activation.Context.ResolveInternal(Object scope) +218
- Ninject.Activation.Context.Resolve() +277
- Ninject.<>c__DisplayClass15.<Resolve>b__f(IBinding binding) +86
- System.Linq.WhereSelectListIterator`2.MoveNext() +108
- System.Linq.WhereEnumerableIterator`1.MoveNext() +85
- System.Linq.<ConcatIterator>d__71`1.MoveNext() +111
- System.Linq.Buffer`1..ctor(IEnumerable`1 source) +216
- System.Linq.Enumerable.ToArray(IEnumerable`1 source) +77
- System.Web.Http.Services.DefaultServices.GetServices(Type serviceType) +547
- Ninject.Web.WebApi.NinjectWebApiHttpApplicationPlugin.Start() +401
- Ninject.Web.Common.Bootstrapper.<Initialize>b__0(INinjectHttpApplicationPlugin c) +29
- Ninject.Infrastructure.Language.ExtensionsForIEnumerableOfT.Map(IEnumerable`1 series, Action`1 action) +194
- Ninject.Web.Common.Bootstrapper.Initialize(Func`1 createKernelCallback) +205
- Ninject.Web.Common.OwinHost.<Execute>d__1.MoveNext() +259
- System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93
- System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52
- System.Runtime.CompilerServices.TaskAwaiter.GetResult() +21
- Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.<RunApp>d__5.MoveNext() +287
- System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93
- System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52
- System.Runtime.CompilerServices.TaskAwaiter.GetResult() +21
- Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.<DoFinalWork>d__2.MoveNext() +272
- System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +22
- Microsoft.Owin.Host.SystemWeb.Infrastructure.ErrorState.Rethrow() +33
- Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.StageAsyncResult.End(IAsyncResult ar) +150
- Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.EndFinalWork(IAsyncResult ar) +43
- System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +415
- System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement