Hi all,
I have recently set up a new combined test project using ASP.NET Zero (ASP.NET Core with Angular ) v 5.5.2 within Visual Studio 2017, however, when run I consistently come into this error:
"Castle.Windsor Warning: 0 : Exception when resolving optional dependency Dependency 'Engine' type 'Microsoft.AspNetCore.Razor.Language.RazorEngine' on component Microsoft.AspNetCore.Mvc.Razor.Internal.LazyMetadataReferenceFeature_62e3f504-f32b-472f-bd5c-7908770e5b05., Castle.MicroKernel.CircularDependencyException: Dependency cycle has been detected when trying to resolve component 'Microsoft.AspNetCore.Razor.Language.RazorProjectEngine_bed00051-a7bf-41bb-aca7-2c0191778dff'.
The resolution tree that resulted in the cycle is the following:
Component 'Microsoft.AspNetCore.Razor.Language.RazorProjectEngine_bed00051-a7bf-41bb-aca7-2c0191778dff' resolved as dependency of
component 'Microsoft.AspNetCore.Razor.Language.RazorEngine_a69b1c79-2cd4-4b6a-900c-d4c4aec62117' resolved as dependency of
component 'Microsoft.AspNetCore.Mvc.Razor.Internal.LazyMetadataReferenceFeature_62e3f504-f32b-472f-bd5c-7908770e5b05' resolved as dependency of
component 'Microsoft.AspNetCore.Razor.Language.RazorProjectEngine_bed00051-a7bf-41bb-aca7-2c0191778dff' resolved as dependency of
component 'Microsoft.AspNetCore.Mvc.Razor.Compilation.IViewCompilerProvider_d0d641b7-9563-4de8-9186-b92ee116363d' resolved as dependency of
component 'Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider_68b648e1-710c-4517-9b24-be0b42e8b92c' resolved as dependency of
component 'Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngine_72347752-2ad5-45e7-b19e-fe6d80e7c760' resolved as dependency of
component 'Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Mvc.MvcViewOptions, Microsoft.AspNetCore.Mvc.ViewFeatures, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]_303311ad-f02e-4c2c-b8fa-b03338b02340' resolved as dependency of
component 'Microsoft.Extensions.Options.IOptionsFactory`1_002af772-e976-4309-a559-11976fea15d5' resolved as dependency of
component 'Microsoft.Extensions.Options.IOptionsFactory`1_002af772-e976-4309-a559-11976fea15d5' resolved as dependency of
component 'Microsoft.Extensions.Options.IOptions`1_08388d6e-8a26-4a1c-88eb-d2b3ade02e08' resolved as dependency of
component 'Microsoft.Extensions.Options.IOptions`1_08388d6e-8a26-4a1c-88eb-d2b3ade02e08' resolved as dependency of
component 'Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelProvider_1b1bee81-054a-48a0-9269-ee042607c168' resolved as dependency of
component 'Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.IPageLoader_e0540bef-a612-4080-bf0d-1c14658854d5' resolved as dependency of
component 'Microsoft.AspNetCore.Mvc.Abstractions.IActionInvokerProvider_95cfcba2-0983-4c71-83eb-ebed0f4bd33b' resolved as dependency of
component 'Microsoft.AspNetCore.Mvc.Infrastructure.IActionInvokerFactory_7b587220-bae2-46e9-90ca-41d122944dd7' resolved as dependency of
component 'Microsoft.AspNetCore.Mvc.Internal.MvcRouteHandler_334960af-4de5-4aad-b50d-e5225121c092' which is the root component being resolved."
This is a fresh installation and a colleague of mine has also tried on his PC and run into the same issue.
Please could someone advise?
Thanks, Kitty
4 Answer(s)
-
0
hi System15
I also downloaded ASP.NET Zero (ASP.NET Core with Angular ) v 5.5.2, but failed to reproduce the error. Since you are a newly downloaded project, you can send your project to <a href="mailto:[email protected]">[email protected]</a> and let's take a look.
-
0
Thanks.
I have sent an email across with a link to our secure file share system containing the project.
Kitty
-
0
Already received, we began to check to see.
-
0
I found the reason, please see [https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3569#issuecomment-401983717])