Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Dependency cycle error #916


User avatar
0
eggersa created

When I try to run the ASP.NET Zero Solution (download was in the end of last week) I get the following error:

Castle.Windsor Warning: 0 : Exception when resolving optional dependency Dependency 'FeatureValueStore' type 'Abp.Application.Features.IFeatureValueStore' on component Abp.Application.Features.FeatureChecker., Castle.MicroKernel.CircularDependencyException: Dependency cycle has been detected when trying to resolve component 'MyProject.Authorization.Users.UserManager'.
The resolution tree that resulted in the cycle is the following:
Component 'MyProject.Authorization.Users.UserManager' resolved as dependency of
	component 'MyProject.MultiTenancy.Demo.TenantDemoDataBuilder' resolved as dependency of
	component 'MyProject.MultiTenancy.TenantManager' resolved as dependency of
	component 'MyProject.Editions.FeatureValueStore' resolved as dependency of
	component 'Abp.Application.Features.FeatureChecker' resolved as dependency of
	component 'Abp.Application.Features.FeatureDependencyContext' resolved as dependency of
	component 'MyProject.Authorization.Users.UserManager' resolved as dependency of
	component 'MyProject.Authorization.PermissionChecker' resolved as dependency of
	component 'MyProject.Web.Controllers.HomeController' which is the root component being resolved.

So far I didn't change anything in the code. Except some workarounds for .NET 4.6 features since I am using Visual Studio 2013 with .NET 4.5.2. But I do not think, that this has anything to do with the dependency resolution problem. Looking forward to fix this problem.


5 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Thank you for informing us. Please follow this Github issue: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/163">https://github.com/aspnetzero/aspnet-zero/issues/163</a> We will resolve it soon.

  • User Avatar
    0
    eggersa created

    When can the fix be expected? Since we are using the paid version as base for a real world customer project, which is already ongoing, I would be happy about a fix.

  • User Avatar
    0
    hikalkan created
    Support Team

    Will be fixed and released in a few days. This bug should not be very critical as I checked it.

  • User Avatar
    0
    gpolucci created

    Was this ever addressed? If so, where can I find the fix. The link to github does not work. Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    This issue is moved to <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/issues/183">https://github.com/aspnetboilerplate/mo ... issues/183</a> and fixed as well. You need to update your abp nuget packages.

    But if you upgrade v0.9.0.0 or above there is a breaking change about DATABASE PER TENANT ARCHITECTURE. <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/releases/tag/v0.9.0.0">https://github.com/aspnetboilerplate/mo ... g/v0.9.0.0</a>

    If you dont want this breaking change just update your abp packages to 0.8.4.

    Also, if you can share your github username, we can invite you to private repository.