Http error 502.5 - process failure in asp.net core 3.1

Jul 14 2021 27

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. 

HTTP Error 502.5 - Process Failure in .net core 3.1

I tryed to reinstall .NET Core Runtime but it still not work for me.

How can I resolve it?

Thanks for any suggestions.

Have 2 answer(s) found.
  • J

    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!

  • 1

    123 kim Jul 14 2021

    The solution is to set the property PublishWithAspNetCoreTargetManifest to false. 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.

Leave An Answer
* NOTE: You need Login before leave an answer

* Type maximum 2000 characters.

* All comments have to wait approved before display.

* Please polite comment and respect questions and answers of others.

Popular Tips

X Close