Http error 502.5 - process failure in asp.net core 3.1
Hello!! I have a small project with Asp.net Core 3.1.
Yesterday everything work well but today I got error Http error 502.5 - process failure.
I tryed to reinstall .NET Core Runtime but it still not work for me.
How can I resolve it?
Thanks for any suggestions.
-
J0
Jose Luis Jul 14 2021
Oh, I got same error when I try run ctrl + f5 (run without debug). But when I try to run with debug(F5) I got other exception throw:
System.AggregateException: 'Error while validating the service descriptor 'ServiceType: RDM.Business.TagBo.ITagBoFE Lifetime: Singleton ImplementationType: RDM.Business.TagBo.TagBoFE': Cannot consume scoped service 'RDM.Business.BuildLink.IBuildLinkBo' from singleton '(Error while validating the service descriptor 'ServiceType: RDM.Business.ProgLanguageBo.IProgLanguageBoFE Lifetime: Singleton ImplementationType: RDM.Business.ProgLanguageBo.ProgLanguageBoFE': Cannot consume scoped service 'RDM.Business.BuildLink.IBuildLinkBo' from singleton 'RDM.Business.ProgLanguageBo.IProgLanguageBoFE'.) (Error while validating the service descriptor 'ServiceType: RDM.Business.NewsBo.Cached.IArticlesCached Lifetime: Singleton ImplementationType: RDM.Business.NewsBo.Cached.ArticlesCached': Cannot consume scoped service 'RDM.Business.BuildLink.IBuildLinkBo' from singleton 'RDM.Business.NewsBo.IArticlesBoFE'.) (Error while validating the service descriptor 'ServiceType: RDM.Business.NewsBo.IArticlesBoFE Lifetime: Singleton ImplementationType: RDM.Business.NewsBo.ArticlesBoFE': Cannot consume scoped service 'RDM.Business.BuildLink.IBuildLinkBo' from singleton 'RDM.Business.NewsBo.IArticlesBoFE'.)
And after resove this exception and issue also resolve for me!
-
10
123 kim Jul 14 2021
The solution is to set the property
PublishWithAspNetCoreTargetManifest
tofalse
. I have set this in the.csproj
as follows.<Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest> </PropertyGroup> </Project>
And it works for me.
* Type maximum 2000 characters.
* All comments have to wait approved before display.
* Please polite comment and respect questions and answers of others.