Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eric 11 posts 42 karma points
    Mar 14, 2023 @ 22:02
    Eric
    0

    Umbraco 11.2 throws "HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure" Error

    This site and others using 11.2 run locally without any issues. However when I deploy to my web host (MyAsp.Net) all of the 11.2 apps throw the following error:

    Unhandled exception. System.InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.DataProtection.Infrastructure.IApplicationDiscriminator' while attempting to activate 'Umbraco.Cms.Web.Common.Logging.Enrichers.ApplicationIdEnricher'.

    the stack trace leads to Program.cs:line 6, which is:

        public static void Main(string[] args)
            => CreateHostBuilder(args)
                .Build()
                .Run();
    

    The Program.cs file is unmodified.

    Deploy/Publish settings are:

    • Configuration: Release
    • Target Framework: net7.0
    • Deployment Mode: Framework-dependent
    • Target Runtime: Portable

    I have also tried using:

    • Deployment Mode: Self-Contained
    • Target Runtime: win-x86 and win-x64

    All combinations produce the same error.

    I have also installed Microsoft.AspNetCore.DataProtection (7.04, via NuGet) for the Data Protection DLLs. Still throws that error.

    Thoughts, ideas, suggestions? Web search, as of yet, doesn't turn up anything specific to the IApplicationDiscriminator error or anything helpful.

  • Eric 11 posts 42 karma points
    Mar 15, 2023 @ 19:29
    Eric
    0

    Ok... so... I ended up deleting everything in the site folder on the web server and reuploading all of the files. All is running now.

    It takes a while to backup and restore a large media folder.

  • Aicha 2 posts 71 karma points
    Jul 16, 2023 @ 16:25
    Aicha
    0

    Hi,

    I have the same issue . I'm deploying the app to azure. I still have the same problem since 3 days. I appreciate any help please. thanks

Please Sign in or register to post replies

Write your reply to:

Draft