Base solution for your next web application
Open Closed

Castle.MicroKernel.CircularDependencyException #5614


User avatar
0
statuscast created

Sorry for a second post but I'm trying to work through these startup exceptions. I get this during startup of a freshly downloaded copy of the DotNetCore jQuery+MVC app when running the Web.MVC project.

Am I the only one getting these? I haven't updated any packages (which I thought may have been the issue with my previous post -- it wasn't)

Exception thrown: 'Castle.MicroKernel.CircularDependencyException' in Castle.Windsor.dll Dependency cycle has been detected when trying to resolve component 'Microsoft.AspNetCore.Razor.Language.RazorProjectEngine_342f322e-12a2-43fa-bd2c-b3d7a11fea5b'. The resolution tree that resulted in the cycle is the following: Component 'Microsoft.AspNetCore.Razor.Language.RazorProjectEngine_342f322e-12a2-43fa-bd2c-b3d7a11fea5b' resolved as dependency of component 'Microsoft.AspNetCore.Razor.Language.RazorEngine_84465d71-0335-4164-9caa-a7b1825160ce' resolved as dependency of component 'Microsoft.AspNetCore.Mvc.Razor.Internal.LazyMetadataReferenceFeature_fadeed8d-908f-4f1a-929e-671e0fac0468' resolved as dependency of component 'Microsoft.AspNetCore.Razor.Language.RazorProjectEngine_342f322e-12a2-43fa-bd2c-b3d7a11fea5b' resolved as dependency of component 'Microsoft.AspNetCore.Mvc.Razor.Compilation.IViewCompilerProvider_b4901d29-7df1-4715-a1a4-3a3e6614f9c4' resolved as dependency of component 'Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider_41441bd0-e3c9-4ab3-9194-b43dbf35817b' resolved as dependency of component 'Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngine_77e94e9f-46af-4866-bb10-767d8ccd0218' resolved as dependency of component 'Microsoft.Extensions.Options.IConfigureOptions1[[Microsoft.AspNetCore.Mvc.MvcViewOptions, Microsoft.AspNetCore.Mvc.ViewFeatures, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]_5aae7c05-6172-497b-9d95-463f42a3f065' resolved as dependency of component 'Microsoft.Extensions.Options.IOptionsFactory1_845669a6-a7eb-4e97-89c9-e07cc667f74c' resolved as dependency of component 'Microsoft.Extensions.Options.IOptionsFactory1_845669a6-a7eb-4e97-89c9-e07cc667f74c' resolved as dependency of component 'Microsoft.Extensions.Options.IOptions1_9314a2d7-cc59-44a6-937c-0ec01e523717' resolved as dependency of component 'Microsoft.Extensions.Options.IOptions`1_9314a2d7-cc59-44a6-937c-0ec01e523717' resolved as dependency of component 'Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelProvider_b29b5f53-be79-469c-91cb-30a963369e9d' resolved as dependency of component 'Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.IPageLoader_ffd49a92-ac4c-455b-812b-b319374e8df2' resolved as dependency of component 'Microsoft.AspNetCore.Mvc.Abstractions.IActionInvokerProvider_adecbe20-f382-4dfd-8c1e-d5a534c872d7' resolved as dependency of component 'Microsoft.AspNetCore.Mvc.Infrastructure.IActionInvokerFactory_1aa4e594-8f55-43fa-a5c8-2d1501735feb' resolved as dependency of component 'Microsoft.AspNetCore.Mvc.Internal.MvcRouteHandler_6ba755e4-c2c4-42f6-a842-398731985a14' which is the root component being resolved.

take care, jasen


6 Answer(s)
  • User Avatar
    0
    statuscast created

    Is this exception related to this: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3569

    is so, just ignore?

  • User Avatar
    0
    alper created
    Support Team

    seems so...

  • User Avatar
    0
    ismcagdas created
    Support Team

    @statuscast updating ABP to v3.8 or above should fix this problem. You can try to upgrade your ABP nuget packages.

  • User Avatar
    0
    statuscast created

    we actually already are upgraded to 3.8.2

    I'll try blowing away bin and obj files again today.

  • User Avatar
    0
    ismcagdas created
    Support Team

    statuscast did you make any progress on this ?

  • User Avatar
    0
    statuscast created

    I don't seem to be seeing the exception anymore, so it looks like we are all set. Thanks!