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
    16 days ago

    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)

    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
    15 days ago

    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.

Please Sign in or register to post replies

Write your reply to: